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');
module.exports = class JoinRoleCommand extends Command {
constructor(client) {
@@ -8,6 +8,7 @@ module.exports = class JoinRoleCommand extends Command {
memberName: 'join-role',
description: 'Sets a role that new members are automatically joined to.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'role',
@@ -18,11 +19,6 @@ module.exports = class JoinRoleCommand extends Command {
});
}
hasPermission(msg) {
if (!msg.member.hasPermission('ADMINISTRATOR')) return 'You do not have the `Administrator` Permission.';
else return true;
}
run(msg, args) {
const { role } = args;
msg.guild.settings.set('joinRole', role.id);