mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
фикс
This commit is contained in:
parent
9b207719d9
commit
65261568ca
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue