diff --git a/src/modules/foxwells.js b/src/modules/foxwells.js index c61d7c8..7023ee0 100644 --- a/src/modules/foxwells.js +++ b/src/modules/foxwells.js @@ -347,10 +347,15 @@ async function processReaction(_msg, reaction, user) { if (trueCount == 0) { logger.verbose("vinboard", `Deleting entry for "${msg.id}"`); if (dbEntry.board_id) { - await hf.bot.deleteWebhookMessage( + /*await hf.bot.deleteWebhookMessage( vinboard_webhook.id, vinboard_webhook.token, - dbEntry.board_id + dbEntry.board_id, + VINBOARD_THREAD_ID + );*/ + await hf.bot.requestHandler.request( + "DELETE", + `/webhooks/${vinboard_webhook.id}/${vinboard_webhook.token}/messages/${dbEntry.board_id}?thread_id=${VINBOARD_THREAD_ID}` ); await deleteBoardEntry(msg.id); }