mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
fix: show all attachment URLs in !message, fix crash with attachments
This commit is contained in:
parent
ff160be1fa
commit
d5363449a0
1 changed files with 2 additions and 1 deletions
|
@ -130,9 +130,10 @@ export async function getMessageInfoEmbed(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message.attachments.size) {
|
if (message.attachments.size) {
|
||||||
|
const attachmentUrls = message.attachments.map((att) => att.url);
|
||||||
embed.fields.push({
|
embed.fields.push({
|
||||||
name: preEmbedPadding + "Attachments",
|
name: preEmbedPadding + "Attachments",
|
||||||
value: message.attachments[0].url,
|
value: attachmentUrls.join("\n"),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue