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,