foxwells.vinboard: fix attachments again

This commit is contained in:
Cynthia Foxwell 2022-12-02 23:50:39 -07:00
parent 0278645e2f
commit 050c2df232

View file

@ -239,8 +239,7 @@ async function createBoardMessage(msg, count) {
username: msg.member?.displayName ?? msg.author.username,
threadID: VINBOARD_THREAD_ID,
embeds: [embed],
attachments: image.file ? [{filename: "thumb.jpg"}] : null,
files: image.file ? [{file: image.file, filename: "thumb.jpg"}] : null,
files: image.file ? [{contents: image.file, filename: "thumb.jpg"}] : null,
wait: true,
};
}