From 9ba4b3a144f2092a0d7b60374dee73232466a5cf Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 7 Jan 2024 21:36:22 +0100 Subject: [PATCH] Updated all button file embed props --- src/components/buttons/checkstats.ts | 2 +- src/components/buttons/guildapplicationaccept.ts | 4 ++-- src/components/buttons/guildapply.ts | 4 ++-- src/components/buttons/guildinactivitylog.ts | 4 ++-- src/components/buttons/staffapplicationaccept.ts | 4 ++-- src/components/buttons/staffapply.ts | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/buttons/checkstats.ts b/src/components/buttons/checkstats.ts index 04f0d1a..9d27e9b 100644 --- a/src/components/buttons/checkstats.ts +++ b/src/components/buttons/checkstats.ts @@ -236,7 +236,7 @@ export = { }, footer: { text: interaction.guild!.name + " | " + devMessage, - icon_url: interaction.guild!.iconURL()!, + icon_url: interaction.guild!.iconURL() || undefined, }, fields: statsFields, }, diff --git a/src/components/buttons/guildapplicationaccept.ts b/src/components/buttons/guildapplicationaccept.ts index 3cd8baa..341203f 100644 --- a/src/components/buttons/guildapplicationaccept.ts +++ b/src/components/buttons/guildapplicationaccept.ts @@ -143,10 +143,10 @@ export = { "Application has been accepted by <@" + user.id + ">.", color: embedColor, thumbnail: { - url: applicant.avatarURL() || guild.iconURL()!, + url: applicant.avatarURL({ forceStatic: false }) || "", }, footer: { - icon_url: guild.iconURL()!, + icon_url: guild.iconURL({ forceStatic: false }) || undefined, text: "ID: " + applicant.id, }, }, diff --git a/src/components/buttons/guildapply.ts b/src/components/buttons/guildapply.ts index 06cfd18..2ffc9fc 100644 --- a/src/components/buttons/guildapply.ts +++ b/src/components/buttons/guildapply.ts @@ -548,7 +548,7 @@ export = { " - Guild Application", color: embedColor, thumbnail: { - url: user.avatarURL() || guild.iconURL()!, + url: user.avatarURL({ forceStatic: false }) || "", }, fields: [ { @@ -585,7 +585,7 @@ export = { }, ], footer: { - icon_url: guild.iconURL()!, + icon_url: guild.iconURL({ forceStatic: false }) || "", text: "ID: " + user.user.id, }, }, diff --git a/src/components/buttons/guildinactivitylog.ts b/src/components/buttons/guildinactivitylog.ts index da79415..a9949db 100644 --- a/src/components/buttons/guildinactivitylog.ts +++ b/src/components/buttons/guildinactivitylog.ts @@ -317,7 +317,7 @@ module.exports = { " - Inactivity Application", color: embedColor, thumbnail: { - url: user.displayAvatarURL({ forceStatic: false }), + url: user.avatarURL({ forceStatic: false }) || "", }, fields: [ { @@ -334,7 +334,7 @@ module.exports = { }, ], footer: { - icon_url: user.displayAvatarURL({ forceStatic: false }), + icon_url: user.avatarURL({ forceStatic: false }) || undefined, text: "ID: " + user.user.id, }, }, diff --git a/src/components/buttons/staffapplicationaccept.ts b/src/components/buttons/staffapplicationaccept.ts index e90580e..c4d3e8a 100644 --- a/src/components/buttons/staffapplicationaccept.ts +++ b/src/components/buttons/staffapplicationaccept.ts @@ -59,10 +59,10 @@ export = { description: "Application accepted by <@" + user.id + ">.", color: embedColor, thumbnail: { - url: applicant.avatarURL()!, + url: applicant.avatarURL({ forceStatic: false }) || "", }, footer: { - icon_url: guild.iconURL()!, + icon_url: guild.iconURL({ forceStatic: false }) || undefined, text: "ID: " + applicantId, }, }, diff --git a/src/components/buttons/staffapply.ts b/src/components/buttons/staffapply.ts index f031ba0..7573827 100644 --- a/src/components/buttons/staffapply.ts +++ b/src/components/buttons/staffapply.ts @@ -476,7 +476,7 @@ export = { " - Staff Application", color: embedColor, thumbnail: { - url: user.avatarURL() || guild.iconURL()!, + url: user.avatarURL({ forceStatic: false }) || "", }, fields: [ { @@ -505,7 +505,7 @@ export = { }, ], footer: { - icon_url: guild.iconURL()!, + icon_url: guild.iconURL({ forceStatic: false }) || undefined, text: "ID: " + user.user.id, }, },