foxwells.vinboard: specify wait

This commit is contained in:
Cynthia Foxwell 2022-12-02 23:32:51 -07:00
parent 073a778808
commit c02e85aafe

View file

@ -244,6 +244,7 @@ async function createBoardMessage(msg, count) {
threadID: VINBOARD_THREAD_ID,
embeds: [embed],
files: image.file ? [{file: image.file, filename: "thumb.jpg"}] : null,
wait: true,
};
}
@ -324,6 +325,7 @@ async function processReaction(_msg, user, reaction) {
const boardMessage = await vinboard_webhook.execute(
await createBoardMessage(msg, trueCount)
);
logger.debug("vinboard", JSON.stringfy(boardMessage));
await setBoardEntry(msg.id, trueCount, boardMessage.id);
}
}