From 55b6c604ed4bafee9048652c8c126ba3f6ce74ec Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 10 Jul 2024 15:52:51 -0600 Subject: [PATCH] vinboard: fix ocenaic reminants --- src/modules/foxwells.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/foxwells.js b/src/modules/foxwells.js index df6e653..c61d7c8 100644 --- a/src/modules/foxwells.js +++ b/src/modules/foxwells.js @@ -347,9 +347,10 @@ async function processReaction(_msg, reaction, user) { if (trueCount == 0) { logger.verbose("vinboard", `Deleting entry for "${msg.id}"`); if (dbEntry.board_id) { - await vinboard_webhook.deleteMessage( - dbEntry.board_id, - "[Vinboard] Message has 0 reactions now." + await hf.bot.deleteWebhookMessage( + vinboard_webhook.id, + vinboard_webhook.token, + dbEntry.board_id ); await deleteBoardEntry(msg.id); }