foxwells.vinboard: attempt to preserve attachments

This commit is contained in:
Cynthia Foxwell 2022-12-03 10:22:14 -07:00
parent 90132ed9c0
commit df3167f33f
1 changed files with 3 additions and 1 deletions

View File

@ -323,7 +323,9 @@ async function processReaction(_msg, user, reaction) {
);
const props = await createBoardMessage(msg, trueCount, false);
props.attachments = [..._boardMessage.attachments.values()];
props.attachments = [..._boardMessage.attachments.values()].map(
(attach) => ({id: attach.id})
);
await vinboard_webhook.editMessage(_boardMessage.id, props);
await setBoardEntry(msg.id, trueCount, _boardMessage.id);
} else {