vinboard: fix ocenaic reminants

This commit is contained in:
Cynthia Foxwell 2024-07-10 15:52:51 -06:00
parent b63e2dadb3
commit 55b6c604ed

View file

@ -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);
}