From 8c10ba4f5697a20a4cb08717771277842003cda5 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sun, 22 May 2022 02:50:10 -0500 Subject: [PATCH] avatar bug --- commands/misc/avatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/misc/avatar.js b/commands/misc/avatar.js index e6759f2..fa2113a 100644 --- a/commands/misc/avatar.js +++ b/commands/misc/avatar.js @@ -16,8 +16,8 @@ module.exports = { }, async execute(message, msg, args, cmd, prefix, mention, client) { let fail = false; - await client.users.fetch(member.id, {force: true}).catch(() => fail = true); let member = args.length && !fail ? (mention || client.users.cache.get(args[0]) || message.author) : message.author; + await client.users.fetch(member.id, {force: true}).catch(() => fail = true); if (message.guild) {message.guild.members.fetch(member.id, {force: true});} let name = message.guild ? message.guild.members.cache.get(member.id).displayName : member.username; let options = new TagFilter([