Update message delete log embed to only show filenames #366

Merged
Vylpes merged 1 commit from feature/322-message-attachments-log into develop 2023-11-10 18:21:28 +00:00
Showing only changes of commit 19bc006ed2 - Show all commits

View file

@ -33,8 +33,8 @@ export default async function MessageDelete(message: Message) {
if (message.attachments.size > 0) {
embed.addFields([
{
name: "Attachments",
value: `\`\`\`${message.attachments.map(x => x.url).join("\n")}\`\`\``
name: `Attachments (${message.attachments.size})`,
value: `\`\`\`${message.attachments.map(x => x.name).join("\n")}\`\`\``
}
]);
}