diff options
| author | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
| commit | bb511abc03bb66848947e37a999502b813c77269 (patch) | |
| tree | 612c010fc8317e1cdf11471a18aad0270819d33e /src/commands/moderation/addrole.ts | |
| parent | fix: if clear amount equal or over 100, round down to 99 (diff) | |
| download | dep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz dep-core-bb511abc03bb66848947e37a999502b813c77269.zip | |
goodbye old uwufier :cry:
Diffstat (limited to 'src/commands/moderation/addrole.ts')
| -rw-r--r-- | src/commands/moderation/addrole.ts | 57 |
1 files changed, 0 insertions, 57 deletions
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 |