fallback to guild icon
This commit is contained in:
parent
fedeb89064
commit
5c10bdcb65
|
@ -23,7 +23,7 @@ export default {
|
||||||
const fact = response.data.fact;
|
const fact = response.data.fact;
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle('Random Fact')
|
.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)
|
.setDescription(fact.content)
|
||||||
.setURL(fact.source)
|
.setURL(fact.source)
|
||||||
.setFooter({
|
.setFooter({
|
||||||
|
|
Loading…
Reference in New Issue