foxwells.vinboard: fix avatarURL and threadID

This commit is contained in:
Cynthia Foxwell 2023-01-21 22:46:57 -07:00
parent d99f88d9c0
commit 5767fb12cb

View file

@ -239,11 +239,12 @@ async function createBoardMessage(msg, count, fetchAttachment = true) {
}
return {
avatar_url: msg.member?.avatarURL ?? msg.author.avatarURL,
avatarURL: msg.member?.avatarURL ?? msg.author.avatarURL,
username: msg.member?.displayName ?? msg.author.username,
thread_id: VINBOARD_THREAD_ID,
threadID: VINBOARD_THREAD_ID,
embeds: [embed],
files: image?.file ? [{contents: image.file, name: "thumb.jpg"}] : null,
wait: true,
};
}
@ -323,9 +324,9 @@ async function processReaction(_msg, reaction, user) {
);
const props = {
avatar_url: _boardMessage.author.avatarURL,
avatarURL: _boardMessage.author.avatarURL,
username: _boardMessage.author.username,
thread_id: VINBOARD_THREAD_ID,
threadID: VINBOARD_THREAD_ID,
embeds: _boardMessage.embeds,
wait: true,
};