From 80951013e391aab140800e4f386867e6c391553f Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Sat, 27 Jun 2020 22:52:54 -0700 Subject: add ts defs so not a lot of errors left - made .todo file for epic error tracking --- src/commands/roleplay/highfive.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/commands/roleplay/highfive.ts') diff --git a/src/commands/roleplay/highfive.ts b/src/commands/roleplay/highfive.ts index 52dfa3d..605d505 100644 --- a/src/commands/roleplay/highfive.ts +++ b/src/commands/roleplay/highfive.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 HighFiveRoleplay extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'highfive', aliases: ['high-five'], @@ -25,7 +26,7 @@ module.exports = class HighFiveRoleplay extends Command { ] }); } - run(msg: CommandoMessage, { uUser }) { - msg.say(`_**${msg.author.username}** high-fives **${uUser.username}**._` + ' ' + emoji.random()) + run(msg: CommandoMessage, { uUser }: any) { + return msg.say(`_**${msg.author.username}** high-fives **${uUser.username}**._` + ' ' + emoji.random()) } }; \ No newline at end of file -- cgit v1.2.3