diff --git a/src/modules/utility.js b/src/modules/utility.js index a166f4e..8dba2fa 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -148,7 +148,7 @@ avatar.callback = async function (msg, line) { guildEmbed.image = {url: guildUrl}; return { - embeds: [baseEmbed, guildAvatar && guildEmbed], + embeds: [baseEmbed, guildAvatar && guildEmbed].filter((x) => x != null), }; } } else { @@ -192,7 +192,7 @@ avatar.callback = async function (msg, line) { guildEmbed.image = {url: guildUrl}; return { - embeds: [baseEmbed, guildAvatar && guildEmbed], + embeds: [baseEmbed, guildAvatar && guildEmbed].filter((x) => x != null), }; } };