From cc2b39ff8e177c2cbd6b9cd81c54ec85374aaf0b Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 7 Jan 2024 23:07:53 +0100 Subject: [PATCH] Updated embed prefs --- src/commands/counting/setup.ts | 2 +- src/components/buttons/guildapplicationaccept.ts | 2 +- src/components/buttons/waitingListUpdate.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/counting/setup.ts b/src/commands/counting/setup.ts index a0ef3c2..187b7f5 100644 --- a/src/commands/counting/setup.ts +++ b/src/commands/counting/setup.ts @@ -16,7 +16,7 @@ export default async function setup(interaction: ChatInputCommandInteraction): P description: "Counting channel has been updated to " + channelMention(channel.id), color: embedColor, footer: { - icon_url: interaction.guild!.iconURL()!, + icon_url: interaction.guild!.iconURL() || undefined, text: interaction.guild!.name + " | " + devMessage } }] diff --git a/src/components/buttons/guildapplicationaccept.ts b/src/components/buttons/guildapplicationaccept.ts index 93bc002..26f92a9 100644 --- a/src/components/buttons/guildapplicationaccept.ts +++ b/src/components/buttons/guildapplicationaccept.ts @@ -126,7 +126,7 @@ export = { color: wlembed.color!, footer: { text: "Last updated by " + user.username, - icon_url: user.avatarURL()!, + icon_url: user.avatarURL() || undefined, }, thumbnail: wlembed.thumbnail!, fields: fields, diff --git a/src/components/buttons/waitingListUpdate.ts b/src/components/buttons/waitingListUpdate.ts index 24eb9bb..c74e905 100644 --- a/src/components/buttons/waitingListUpdate.ts +++ b/src/components/buttons/waitingListUpdate.ts @@ -45,7 +45,7 @@ export = { color: embed.color!, footer: { text: "Last updated by " + user.username, - icon_url: user.avatarURL()!, + icon_url: user.avatarURL() || undefined, }, thumbnail: embed.thumbnail!, fields: fields,