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/user/id.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/user/id.ts')
| -rw-r--r-- | src/commands/user/id.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/user/id.ts b/src/commands/user/id.ts index b5d9060..a4d974d 100644 --- a/src/commands/user/id.ts +++ b/src/commands/user/id.ts @@ -1,9 +1,9 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; +//@ts-ignore no types import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; module.exports = class IDUser extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'id', group: 'user', @@ -21,12 +21,12 @@ module.exports = class IDUser extends Command { key: 'uUser', prompt: 'Which user would you like to get the ID of?', type: 'user', - default: msg => msg.author + default: (msg: { author: any; }) => msg.author } ] }); } - run(msg: CommandoMessage, { uUser }) { - msg.reply(`**${uUser.id === msg.author.id ? 'Your' : `${uUser.username}'s`}** ID is **${uUser.id}**. ${emoji.random()}`) + run(msg: CommandoMessage, { uUser }: any) { + return msg.reply(`**${uUser.id === msg.author.id ? 'Your' : `${uUser.username}'s`}** ID is **${uUser.id}**. ${emoji.random()}`) } };
\ No newline at end of file |