utility.avatar: only show second embed if guild avatar
This commit is contained in:
parent
d7162a0694
commit
584f61178f
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, guildEmbed],
|
embeds: [baseEmbed, guildAvatar && guildEmbed],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -192,7 +192,7 @@ avatar.callback = async function (msg, line) {
|
||||||
guildEmbed.image = {url: guildUrl};
|
guildEmbed.image = {url: guildUrl};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
embeds: [baseEmbed, guildEmbed],
|
embeds: [baseEmbed, guildAvatar && guildEmbed],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue