diff options
| author | 8cy <[email protected]> | 2020-06-27 22:52:54 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-06-27 22:52:54 -0700 |
| commit | 80951013e391aab140800e4f386867e6c391553f (patch) | |
| tree | 3d7101237ef1cd8d6fe2a2fab751a2dc55ae7d84 /src/commands/moderation/addrole.ts | |
| parent | more config shit (diff) | |
| download | dep-core-80951013e391aab140800e4f386867e6c391553f.tar.xz dep-core-80951013e391aab140800e4f386867e6c391553f.zip | |
add ts defs so not a lot of errors left
- made .todo file for epic error tracking
Diffstat (limited to 'src/commands/moderation/addrole.ts')
| -rw-r--r-- | src/commands/moderation/addrole.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/commands/moderation/addrole.ts b/src/commands/moderation/addrole.ts index 63f2f14..015775b 100644 --- a/src/commands/moderation/addrole.ts +++ b/src/commands/moderation/addrole.ts @@ -1,8 +1,9 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +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) { + constructor(client: CommandoClient) { super(client, { name: 'addrole', aliases: ['roleadd'], @@ -36,8 +37,8 @@ module.exports = class AddRoleModeration extends Command { guildOnly: true }); } - run(msg: CommandoMessage, { userID, roleID }) { - msg.reply('Command disabled.') + run(msg: CommandoMessage, { userID, roleID }: any) { + return msg.reply(`Command disabled. ${emoji.random()}`) // let role = roleID // console.log('role:', role) // let member = userID |