Updated embed props

This commit is contained in:
2024-01-07 15:25:29 +01:00
parent a90c9994e3
commit c18a5f703f
2 changed files with 4 additions and 7 deletions

View File

@@ -145,16 +145,13 @@ export = {
description: description:
"**User:** " + userMention(member.user.id) + "\n" + "**User:** " + userMention(member.user.id) + "\n" +
"**Reason:** " + reason + "\n" + "**Reason:** " + reason + "\n" +
"**Moderator:** " + mod.user.username + "\n" +
"**Messages Deleted:** " + messageDeletionDays + " days", "**Messages Deleted:** " + messageDeletionDays + " days",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: member.user.avatarURL({ forceStatic: false }) || interaction.guild!.iconURL({ forceStatic: false })!, url: member.user.avatarURL({ forceStatic: false }) || "",
}, },
footer: { footer: {
icon_url: interaction.guild!.iconURL({ icon_url: interaction.guild!.iconURL({ forceStatic: false, })!,
forceStatic: false,
})!,
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
}, },
}, },

View File

@@ -58,7 +58,7 @@ export = {
title: "Force Unverified", title: "Force Unverified",
author: { author: {
name: mod.username, name: mod.username,
icon_url: mod.avatarURL({ forceStatic: false })!, icon_url: mod.avatarURL({ forceStatic: false }) || undefined,
}, },
description: ` description: `
**User:** ${userMention(member.user.id)} **User:** ${userMention(member.user.id)}
@@ -68,7 +68,7 @@ export = {
`, `,
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: mod.avatarURL({ forceStatic: false })!, url: mod.avatarURL({ forceStatic: false }) || "",
}, },
footer: { footer: {
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined, icon_url: member.user.avatarURL({ forceStatic: false }) || undefined,