From 7213c50113921a6d021e3bf0e67700e4e6c4364f Mon Sep 17 00:00:00 2001 From: Neko Life Date: Mon, 10 May 2021 13:59:19 +0000 Subject: [PATCH] bug fix --- cmds/utility/avatar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmds/utility/avatar.js b/cmds/utility/avatar.js index b0bf1eb..a404203 100644 --- a/cmds/utility/avatar.js +++ b/cmds/utility/avatar.js @@ -24,7 +24,7 @@ module.exports = class avatar extends commando.Command { errLog(docErr, msg, this.client); } const footerQuote = r?.["settings"]?.defaultEmbed?.footerQuote; - const args = arg.trim().split(/,+/); + const args = arg.trim().split(/(? 1) { trySend(this.client, msg, "Manage messages permission required to show two or more avatar at once!"); @@ -61,6 +61,7 @@ module.exports = class avatar extends commando.Command { ree.push(reeRes); } } else { + user = undefined; trySend(client, msg, `Can't find user: **${avThis.trim()}**`); } }