vinboard: fix ocenaic reminants
This commit is contained in:
parent
b63e2dadb3
commit
55b6c604ed
1 changed files with 4 additions and 3 deletions
|
@ -347,9 +347,10 @@ async function processReaction(_msg, reaction, user) {
|
||||||
if (trueCount == 0) {
|
if (trueCount == 0) {
|
||||||
logger.verbose("vinboard", `Deleting entry for "${msg.id}"`);
|
logger.verbose("vinboard", `Deleting entry for "${msg.id}"`);
|
||||||
if (dbEntry.board_id) {
|
if (dbEntry.board_id) {
|
||||||
await vinboard_webhook.deleteMessage(
|
await hf.bot.deleteWebhookMessage(
|
||||||
dbEntry.board_id,
|
vinboard_webhook.id,
|
||||||
"[Vinboard] Message has 0 reactions now."
|
vinboard_webhook.token,
|
||||||
|
dbEntry.board_id
|
||||||
);
|
);
|
||||||
await deleteBoardEntry(msg.id);
|
await deleteBoardEntry(msg.id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue