vinboard: manual request on message delete until dysnomia fixes missing thread id for deleteWebhookMessage
This commit is contained in:
parent
55b6c604ed
commit
bc7977f9fa
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue