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/roleplay/sleep.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/roleplay/sleep.ts')
| -rw-r--r-- | src/commands/roleplay/sleep.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/roleplay/sleep.ts b/src/commands/roleplay/sleep.ts index 0d8beb2..5186044 100644 --- a/src/commands/roleplay/sleep.ts +++ b/src/commands/roleplay/sleep.ts @@ -1,8 +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'; module.exports = class SleepRoleplay extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'sleep', group: 'roleplay', @@ -18,6 +19,6 @@ module.exports = class SleepRoleplay extends Command { }); } run(msg: CommandoMessage) { - msg.say(`_**${msg.author.username}** falls asleep._` + ' ' + emoji.random()) + return msg.say(`_**${msg.author.username}** falls asleep._` + ' ' + emoji.random()) } };
\ No newline at end of file |