foxwells.vinboard: editing fixes

This commit is contained in:
Cynthia Foxwell 2022-12-02 23:57:29 -07:00
parent 7faa912c00
commit 765188c086
1 changed files with 5 additions and 4 deletions

View File

@ -318,10 +318,11 @@ async function processReaction(_msg, user, reaction) {
dbEntry.count ?? 0
} -> ${trueCount})`
);
await webhook.editMessage(
_boardMessage.id,
await createBoardMessage(msg, trueCount)
);
const props = await createBoardMessage(msg, trueCount);
delete props.files;
props.attachments = [..._boardMessage.attachments.values()];
await vinboard_webhook.editMessage(_boardMessage.id, props);
await setBoardEntry(msg.id, trueCount, _boardMessage.id);
} else {
logger.verbose("vinboard", `Creating entry for "${msg.id}"`);