foxwells.vinboard: attempt to preserve attachments
This commit is contained in:
parent
90132ed9c0
commit
df3167f33f
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue