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");