From cb032899b85b6a7cdbc8ce3c168bd4c21ba55397 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Fri, 2 Dec 2022 23:14:37 -0700 Subject: [PATCH] foxwells.vinboard: fix webhook var ref --- src/modules/foxwells.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/foxwells.js b/src/modules/foxwells.js index 1788185..c685773 100644 --- a/src/modules/foxwells.js +++ b/src/modules/foxwells.js @@ -276,7 +276,7 @@ async function processReaction(msg, user, reaction) { if (trueCount == 0) { logger.verbose("vinboard", `Deleting entry for "${msg.id}"`); if (dbEntry.board_id) { - await webhook.deleteMessage( + await vinboard_webhook.deleteMessage( dbEntry.board_id, "[Vinboard] Message has 0 reactions now." ); @@ -297,7 +297,7 @@ async function processReaction(msg, user, reaction) { await setBoardEntry(msg.id, trueCount, dbEntry.board_id); } else { logger.verbose("vinboard", `Creating entry for "${msg.id}"`); - const boardMessage = await webhook.execute( + const boardMessage = await vinboard_webhook.execute( await createBoardMessage(msg, trueCount) ); await setBoardEntry(msg.id, trueCount, boardMessage.id); @@ -305,7 +305,7 @@ async function processReaction(msg, user, reaction) { } } else { logger.verbose("vinboard", `Creating entry for "${msg.id}"`); - const boardMessage = await webhook.execute( + const boardMessage = await vinboard_webhook.execute( await createBoardMessage(msg, trueCount) ); await setBoardEntry(msg.id, trueCount, boardMessage.id);