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

View file

@ -323,7 +323,9 @@ async function processReaction(_msg, user, reaction) {
); );
const props = await createBoardMessage(msg, trueCount, false); 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 vinboard_webhook.editMessage(_boardMessage.id, props);
await setBoardEntry(msg.id, trueCount, _boardMessage.id); await setBoardEntry(msg.id, trueCount, _boardMessage.id);
} else { } else {