String Changes, Don't register tons of defaults

This commit is contained in:
Daniel Odendahl Jr
2017-04-05 17:27:31 +00:00
parent f380a3ecbd
commit 332016ca5d
75 changed files with 225 additions and 265 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ module.exports = class PruneCommand extends commando.Command {
group: 'moderation',
memberName: 'prune',
description: 'Deletes a defined number of messages from the current channel, up to 99. (;prune 45)',
examples: [";prune 45"],
examples: [';prune 45'],
guildOnly: true,
throttling: {
usages: 1,
@@ -29,7 +29,7 @@ module.exports = class PruneCommand extends commando.Command {
if (count < 100 && count > 0) {
return true;
}
return "Too many or two few messages to delete. Limit 1-99.";
return 'Too many or two few messages to delete. Limit 1-99.';
}
}]
});
@@ -40,7 +40,7 @@ module.exports = class PruneCommand extends commando.Command {
async run(message, args) {
if (message.channel.type !== 'dm') {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'MANAGE_MESSAGES'])) return;
if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'MANAGE_MESSAGES', 'READ_MESSAGE_HISTORY'])) return;
}
console.log(`[Command] ${message.content}`);
const count = args.count + 1;