Clean-Ups

This commit is contained in:
Daniel Odendahl Jr
2017-05-31 04:41:01 +00:00
parent 21ebcf8537
commit 7802bb49cb
142 changed files with 351 additions and 495 deletions
+2 -6
View File
@@ -1,4 +1,4 @@
const { Command } = require('discord.js-commando');
const Command = require('../../structures/Command');
const settings = require('../../assets/json/clear-setting');
module.exports = class ClearSettingCommand extends Command {
@@ -9,6 +9,7 @@ module.exports = class ClearSettingCommand extends Command {
memberName: 'clear-setting',
description: 'Removes a custom setting from your server.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'setting',
@@ -23,11 +24,6 @@ module.exports = class ClearSettingCommand extends Command {
});
}
hasPermission(msg) {
if (!msg.member.hasPermission('ADMINISTRATOR')) return 'You do not have the `Administrator` Permission.';
else return true;
}
run(msg, args) {
const { setting } = args;
msg.guild.settings.remove(setting);