From df3167f33f2ca0e3085c0572113a01b68af36a29 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Sat, 3 Dec 2022 10:22:14 -0700 Subject: [PATCH] foxwells.vinboard: attempt to preserve attachments --- src/modules/foxwells.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/foxwells.js b/src/modules/foxwells.js index 83ca562..f3acdcd 100644 --- a/src/modules/foxwells.js +++ b/src/modules/foxwells.js @@ -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 {