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/anime/uwufy.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/commands/anime/uwufy.ts') diff --git a/src/commands/anime/uwufy.ts b/src/commands/anime/uwufy.ts index 45bb3d1..f9f0187 100644 --- a/src/commands/anime/uwufy.ts +++ b/src/commands/anime/uwufy.ts @@ -1,9 +1,10 @@ -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 uwufy from 'uwufy' module.exports = class UwufyAnime extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'uwufy', aliases: ['uwu', 'owofy', 'owo'], @@ -31,8 +32,8 @@ module.exports = class UwufyAnime extends Command { }, }); } - run(msg: CommandoMessage, { userMsg }) { + run(msg: CommandoMessage, { userMsg }: any) { msg.reply(uwufy(userMsg) + ' ' + emoji.random()) - msg.delete(); + return msg.delete(); } }; \ No newline at end of file -- cgit v1.2.3