add emoji for fake facts

This commit is contained in:
ShuriZma 2024-06-22 10:58:28 +02:00
parent 5c10bdcb65
commit 208cf4bae6
Signed by: ShuriZma
GPG Key ID: 8D289758EE9B8074
1 changed files with 2 additions and 1 deletions

View File

@ -21,9 +21,10 @@ export default {
});
const fact = response.data.fact;
const emojiId = fact.real ? '1237383875924197456' : '1237383961332813937';
const embed = new EmbedBuilder()
.setTitle('Random Fact')
.setThumbnail(bot.client.emojis.cache.get('1237383875924197456')?.imageURL() ?? interaction.guild.iconURL())
.setThumbnail(bot.client.emojis.cache.get(emojiId)?.imageURL() ?? interaction.guild.iconURL())
.setDescription(fact.content)
.setURL(fact.source)
.setFooter({