add usages to all commands
parent
88d44fa484
commit
81fea6cdd0
|
@ -7,6 +7,7 @@ export default class Ban extends Command {
|
|||
super(client);
|
||||
this.name = 'ban';
|
||||
this.description = 'Bans a member from the guild.';
|
||||
this.usage = 'ban <member> [time] [reason]';
|
||||
this.permissions = 2;
|
||||
this.guildOnly = true;
|
||||
this.enabled = true;
|
||||
|
@ -27,7 +28,7 @@ export default class Ban extends Command {
|
|||
const reason = momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' ');
|
||||
return await this.client.util.moderation.ban(member, message.member, momentMilliseconds, reason);
|
||||
} catch (err) {
|
||||
return this.client.util.handleError(err, message, this);
|
||||
return this.client.util.handleError(err, message, this, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ export default class Eval extends Command {
|
|||
|
||||
return display.forEach((m) => message.channel.createMessage(`\`\`\`js\n${m}\n\`\`\``));
|
||||
} catch (err) {
|
||||
return this.client.util.handleError(err, message, this);
|
||||
return this.client.util.handleError(err, message, this, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ export default class Game extends Command {
|
|||
super(client);
|
||||
this.name = 'game';
|
||||
this.description = 'Displays information about the member\'s game.';
|
||||
this.usage = 'game [member]';
|
||||
this.permissions = 0;
|
||||
this.aliases = ['activity'];
|
||||
this.guildOnly = true;
|
||||
|
|
|
@ -6,6 +6,7 @@ export default class Ping extends Command {
|
|||
super(client);
|
||||
this.name = 'ping';
|
||||
this.description = 'Pings the bot';
|
||||
this.usage = 'ping';
|
||||
this.permissions = 0;
|
||||
this.enabled = true;
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ export default class Whois extends Command {
|
|||
super(client);
|
||||
this.name = 'whois';
|
||||
this.description = 'Provides information on a member.';
|
||||
this.usage = 'whois [member]';
|
||||
this.permissions = 0;
|
||||
this.guildOnly = true;
|
||||
this.enabled = true;
|
||||
|
|
Loading…
Reference in New Issue