3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 02:25:01 +00:00

fix: show all attachment URLs in !message, fix crash with attachments

This commit is contained in:
Dragory 2021-12-19 17:47:21 +02:00
parent f4749a2546
commit 0af0020010

View file

@ -130,9 +130,10 @@ export async function getMessageInfoEmbed(
}
if (message.attachments.size) {
const attachmentUrls = message.attachments.map((att) => att.url);
embed.fields.push({
name: preEmbedPadding + "Attachments",
value: message.attachments[0].url,
value: attachmentUrls.join("\n"),
});
}