From 285c044e30b3ae04d0c944d1e2e9acf94f84904f Mon Sep 17 00:00:00 2001 From: Matthew Ray Date: Sun, 30 Sep 2018 01:51:48 -0400 Subject: [PATCH] Fix Reload Command --- commands/reload.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/commands/reload.js b/commands/reload.js index 684405d..1b7c8d1 100644 --- a/commands/reload.js +++ b/commands/reload.js @@ -1,5 +1,5 @@ -exports.run = (client, message, args, level) => { - if (!args || args.length < 1) return message.reply("please provide a package to reload."); +exports.run = async (client, message, args) => { + if (!args || args.length < 1) return message.reply('please provide a package to reload.'); let response = await client.unloadCommand(args[0]); //eslint-disable-line if (response) return message.reply(`Error Unloading: ${response}`); @@ -8,18 +8,18 @@ exports.run = (client, message, args, level) => { if (response) return message.reply(`Error Loading: ${response}`); message.reply(`the package \`${args[0]}\` has been reloaded.`); -} +}; exports.conf = { enabled: true, guildOnly: false, - aliases: ["r"], - permLevel: "Systems Administrator" + aliases: ['r'], + permLevel: 'Systems Administrator' }; exports.help = { - name: "reload", - category: "System", - description: "Reloads a command that\"s been modified.", - usage: "reload [command]" + name: 'reload', + category: 'System', + description: 'Reloads a command that"s been modified.', + usage: 'reload [command]' };