Updated all button file embed props

This commit is contained in:
2024-01-07 21:36:22 +01:00
parent 952aa4bdd0
commit 9ba4b3a144
6 changed files with 11 additions and 11 deletions

View File

@@ -236,7 +236,7 @@ export = {
}, },
footer: { footer: {
text: interaction.guild!.name + " | " + devMessage, text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL()!, icon_url: interaction.guild!.iconURL() || undefined,
}, },
fields: statsFields, fields: statsFields,
}, },

View File

@@ -143,10 +143,10 @@ export = {
"Application has been accepted by <@" + user.id + ">.", "Application has been accepted by <@" + user.id + ">.",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: applicant.avatarURL() || guild.iconURL()!, url: applicant.avatarURL({ forceStatic: false }) || "",
}, },
footer: { footer: {
icon_url: guild.iconURL()!, icon_url: guild.iconURL({ forceStatic: false }) || undefined,
text: "ID: " + applicant.id, text: "ID: " + applicant.id,
}, },
}, },

View File

@@ -548,7 +548,7 @@ export = {
" - Guild Application", " - Guild Application",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: user.avatarURL() || guild.iconURL()!, url: user.avatarURL({ forceStatic: false }) || "",
}, },
fields: [ fields: [
{ {
@@ -585,7 +585,7 @@ export = {
}, },
], ],
footer: { footer: {
icon_url: guild.iconURL()!, icon_url: guild.iconURL({ forceStatic: false }) || "",
text: "ID: " + user.user.id, text: "ID: " + user.user.id,
}, },
}, },

View File

@@ -317,7 +317,7 @@ module.exports = {
" - Inactivity Application", " - Inactivity Application",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: user.displayAvatarURL({ forceStatic: false }), url: user.avatarURL({ forceStatic: false }) || "",
}, },
fields: [ fields: [
{ {
@@ -334,7 +334,7 @@ module.exports = {
}, },
], ],
footer: { footer: {
icon_url: user.displayAvatarURL({ forceStatic: false }), icon_url: user.avatarURL({ forceStatic: false }) || undefined,
text: "ID: " + user.user.id, text: "ID: " + user.user.id,
}, },
}, },

View File

@@ -59,10 +59,10 @@ export = {
description: "Application accepted by <@" + user.id + ">.", description: "Application accepted by <@" + user.id + ">.",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: applicant.avatarURL()!, url: applicant.avatarURL({ forceStatic: false }) || "",
}, },
footer: { footer: {
icon_url: guild.iconURL()!, icon_url: guild.iconURL({ forceStatic: false }) || undefined,
text: "ID: " + applicantId, text: "ID: " + applicantId,
}, },
}, },

View File

@@ -476,7 +476,7 @@ export = {
" - Staff Application", " - Staff Application",
color: embedColor, color: embedColor,
thumbnail: { thumbnail: {
url: user.avatarURL() || guild.iconURL()!, url: user.avatarURL({ forceStatic: false }) || "",
}, },
fields: [ fields: [
{ {
@@ -505,7 +505,7 @@ export = {
}, },
], ],
footer: { footer: {
icon_url: guild.iconURL()!, icon_url: guild.iconURL({ forceStatic: false }) || undefined,
text: "ID: " + user.user.id, text: "ID: " + user.user.id,
}, },
}, },