add usages to all commands

merge-requests/5/head
Matthew 2020-04-15 15:33:46 -04:00
parent 88d44fa484
commit 81fea6cdd0
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
5 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,7 @@ export default class Ban extends Command {
super(client); super(client);
this.name = 'ban'; this.name = 'ban';
this.description = 'Bans a member from the guild.'; this.description = 'Bans a member from the guild.';
this.usage = 'ban <member> [time] [reason]';
this.permissions = 2; this.permissions = 2;
this.guildOnly = true; this.guildOnly = true;
this.enabled = 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(' '); const reason = momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' ');
return await this.client.util.moderation.ban(member, message.member, momentMilliseconds, reason); return await this.client.util.moderation.ban(member, message.member, momentMilliseconds, reason);
} catch (err) { } catch (err) {
return this.client.util.handleError(err, message, this); return this.client.util.handleError(err, message, this, false);
} }
} }
} }

View File

@ -62,7 +62,7 @@ export default class Eval extends Command {
return display.forEach((m) => message.channel.createMessage(`\`\`\`js\n${m}\n\`\`\``)); return display.forEach((m) => message.channel.createMessage(`\`\`\`js\n${m}\n\`\`\``));
} catch (err) { } catch (err) {
return this.client.util.handleError(err, message, this); return this.client.util.handleError(err, message, this, false);
} }
} }
} }

View File

@ -7,6 +7,7 @@ export default class Game extends Command {
super(client); super(client);
this.name = 'game'; this.name = 'game';
this.description = 'Displays information about the member\'s game.'; this.description = 'Displays information about the member\'s game.';
this.usage = 'game [member]';
this.permissions = 0; this.permissions = 0;
this.aliases = ['activity']; this.aliases = ['activity'];
this.guildOnly = true; this.guildOnly = true;

View File

@ -6,6 +6,7 @@ export default class Ping extends Command {
super(client); super(client);
this.name = 'ping'; this.name = 'ping';
this.description = 'Pings the bot'; this.description = 'Pings the bot';
this.usage = 'ping';
this.permissions = 0; this.permissions = 0;
this.enabled = true; this.enabled = true;
} }

View File

@ -10,6 +10,7 @@ export default class Whois extends Command {
super(client); super(client);
this.name = 'whois'; this.name = 'whois';
this.description = 'Provides information on a member.'; this.description = 'Provides information on a member.';
this.usage = 'whois [member]';
this.permissions = 0; this.permissions = 0;
this.guildOnly = true; this.guildOnly = true;
this.enabled = true; this.enabled = true;