utility.avatar: attempt object cloning
This commit is contained in:
parent
11e2e5f33b
commit
eb63d86e69
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ avatar.callback = async function (msg, line) {
|
||||||
`[Normal avatar](${normalUrl})` +
|
`[Normal avatar](${normalUrl})` +
|
||||||
(guild && guildAvatar ? `\n[Guild avatar](${guildUrl})` : "");
|
(guild && guildAvatar ? `\n[Guild avatar](${guildUrl})` : "");
|
||||||
|
|
||||||
const guildEmbed = baseEmbed;
|
const guildEmbed = {...baseEmbed};
|
||||||
baseEmbed.image = {url: normalUrl};
|
baseEmbed.image = {url: normalUrl};
|
||||||
guildEmbed.image = {url: guildUrl};
|
guildEmbed.image = {url: guildUrl};
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ avatar.callback = async function (msg, line) {
|
||||||
`[Normal avatar](${normalUrl})` +
|
`[Normal avatar](${normalUrl})` +
|
||||||
(guild && guildAvatar ? `\n[Guild avatar](${guildUrl})` : "");
|
(guild && guildAvatar ? `\n[Guild avatar](${guildUrl})` : "");
|
||||||
|
|
||||||
const guildEmbed = baseEmbed;
|
const guildEmbed = {...baseEmbed};
|
||||||
baseEmbed.image = {url: normalUrl};
|
baseEmbed.image = {url: normalUrl};
|
||||||
guildEmbed.image = {url: guildUrl};
|
guildEmbed.image = {url: guildUrl};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue