From 5c10bdcb658161dad8b56c32c0595570058ff0f9 Mon Sep 17 00:00:00 2001 From: ShuriZma Date: Fri, 21 Jun 2024 18:23:08 +0200 Subject: [PATCH] fallback to guild icon --- src/commands/fact.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/fact.ts b/src/commands/fact.ts index af104be..73c6d60 100644 --- a/src/commands/fact.ts +++ b/src/commands/fact.ts @@ -23,7 +23,7 @@ export default { const fact = response.data.fact; const embed = new EmbedBuilder() .setTitle('Random Fact') - .setThumbnail(bot.client.emojis.cache.get('1237383875924197456').imageURL()) + .setThumbnail(bot.client.emojis.cache.get('1237383875924197456')?.imageURL() ?? interaction.guild.iconURL()) .setDescription(fact.content) .setURL(fact.source) .setFooter({