utility.avatar: filter embeds
This commit is contained in:
parent
584f61178f
commit
11e2e5f33b
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ avatar.callback = async function (msg, line) {
|
||||||
guildEmbed.image = {url: guildUrl};
|
guildEmbed.image = {url: guildUrl};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
embeds: [baseEmbed, guildAvatar && guildEmbed],
|
embeds: [baseEmbed, guildAvatar && guildEmbed].filter((x) => x != null),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -192,7 +192,7 @@ avatar.callback = async function (msg, line) {
|
||||||
guildEmbed.image = {url: guildUrl};
|
guildEmbed.image = {url: guildUrl};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
embeds: [baseEmbed, guildAvatar && guildEmbed],
|
embeds: [baseEmbed, guildAvatar && guildEmbed].filter((x) => x != null),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue