From eb63d86e69505aedf58083abe0996099ee5fe758 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 3 Apr 2022 10:45:25 -0600 Subject: [PATCH] utility.avatar: attempt object cloning --- src/modules/utility.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/utility.js b/src/modules/utility.js index 8dba2fa..76afc32 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -143,7 +143,7 @@ avatar.callback = async function (msg, line) { `[Normal avatar](${normalUrl})` + (guild && guildAvatar ? `\n[Guild avatar](${guildUrl})` : ""); - const guildEmbed = baseEmbed; + const guildEmbed = {...baseEmbed}; baseEmbed.image = {url: normalUrl}; guildEmbed.image = {url: guildUrl}; @@ -187,7 +187,7 @@ avatar.callback = async function (msg, line) { `[Normal avatar](${normalUrl})` + (guild && guildAvatar ? `\n[Guild avatar](${guildUrl})` : ""); - const guildEmbed = baseEmbed; + const guildEmbed = {...baseEmbed}; baseEmbed.image = {url: normalUrl}; guildEmbed.image = {url: guildUrl};