Fixed formatting for event files

This commit is contained in:
2024-01-20 20:56:08 +01:00
parent 5ce69eced3
commit 1ffcaf602d
7 changed files with 94 additions and 163 deletions

View File

@@ -13,25 +13,20 @@ export = {
const embedColor = Number(color.replace("#", "0x"))
logToChannel("bot", {
embeds: [
{
title: "New Member",
description:
userMention(member.id) +
" has joined the server.\n" +
"Account created: " +
member.user.createdAt.toLocaleString(),
color: embedColor,
thumbnail: {
url: member.user.avatarURL() || ""
},
footer: {
text: "ID: " + member.id,
icon_url: member.user.avatarURL() || undefined
},
timestamp: new Date().toISOString()
}
]
embeds: [{
title: "New Member",
description: userMention(member.id) + " has joined the server.\n" +
"Account created: " + member.user.createdAt.toLocaleString(),
color: embedColor,
thumbnail: {
url: member.user.avatarURL() || ""
},
footer: {
text: "ID: " + member.id,
icon_url: member.user.avatarURL() || undefined
},
timestamp: new Date().toISOString()
}]
})
}
} as Event