woomy-v2/bot/commands/Developer/reload.js

24 lines
749 B
JavaScript
Raw Normal View History

2020-10-21 07:06:52 +00:00
module.exports = class {
constructor (name, category) {
this.name = name,
this.category = category,
this.enabled = true,
this.devOnly = true,
this.aliases = [],
this.userPerms = [],
this.botPerms = [],
this.cooldown = 0,
this.help = {
description: 'Reloads all commands and event modules.',
2020-10-29 08:20:45 +00:00
arguments: '',
details: '',
2020-10-29 08:31:05 +00:00
examples: '',
2020-10-21 07:06:52 +00:00
};
}
run (client, message, args, data) { //eslint-disable-line no-unused-vars
client.commandLoader.reloadCommands();
client.eventLoader.reloadEventModules();
message.channel.createMessage('All commands and event modules have been reloaded!');
}
};