From bb511abc03bb66848947e37a999502b813c77269 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 23 Jul 2020 23:24:17 -0700 Subject: goodbye old uwufier :cry: --- src/commands/moderation/addrole.ts | 57 -------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 src/commands/moderation/addrole.ts (limited to 'src/commands/moderation/addrole.ts') diff --git a/src/commands/moderation/addrole.ts b/src/commands/moderation/addrole.ts deleted file mode 100644 index 015775b..0000000 --- a/src/commands/moderation/addrole.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; -//@ts-ignore this has no types -import emoji from 'emoji-random' - -module.exports = class AddRoleModeration extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'addrole', - aliases: ['roleadd'], - group: 'moderation', - memberName: 'addrole', - description: '**[Disabled]** Adds a role to a specific user.', - // args: [ - // { - // key: 'userID', - // prompt: 'Who would you like to add the role to? (@someone or myself)', - // type: 'string' - // }, - // { - // key: 'roleID', - // prompt: 'What role would you like to add?', - // type: 'string' - // } - // ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'BAN_MEMBERS'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'BAN_MEMBERS'], - examples: [ - 'uwu!addrole @CoolRole', - 'uwu!addrole @sin#1337 @CoolRole', - 'uwu!roleadd @sin#1337', - 'uwu!roleadd @sin#1337 @CoolerRole' - ], - throttling: { - usages: 5, - duration: 30 - }, - guildOnly: true - }); - } - run(msg: CommandoMessage, { userID, roleID }: any) { - return msg.reply(`Command disabled. ${emoji.random()}`) - // let role = roleID - // console.log('role:', role) - // let member = userID - // console.log('member:', member) - // if (role) { - // if (msg.guild.member(member)?.roles.cache.some(role)) { - // msg.reply(member + ' already has that role! ' + emoji.random()) - // } else { - // msg.guild.member(member)?.roles.add(role).catch(err => console.log(err)) - // msg.reply(`The role **${role}** has been added to **${userID}**.`) - // } - // } else { - // msg.reply('The role or user is either non-existant or you might\'ve mispelled it.') - // } - } -}; \ No newline at end of file -- cgit v1.2.3