fallback to guild icon

This commit is contained in:
ShuriZma 2024-06-21 18:23:08 +02:00
parent fedeb89064
commit 5c10bdcb65
Signed by: ShuriZma
GPG Key ID: 8D289758EE9B8074
1 changed files with 1 additions and 1 deletions

View File

@ -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({