From 65261568ca30aa9bcaf18250cabbd36086eeebcc Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 12 Jan 2022 23:36:43 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Economy/achievements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Economy/achievements.js b/commands/Economy/achievements.js index d7f90ceb..eff6967e 100644 --- a/commands/Economy/achievements.js +++ b/commands/Economy/achievements.js @@ -18,7 +18,7 @@ class Achievements extends Command { } async run(message, args, data) { - let member = message.author; + let member = message.guild ? message.member : message.author; if (args[0]) member = await this.client.resolveMember(args[0], message.guild); if (message.guild && member.user.bot) return message.error("economy/profile:BOT_USER");