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/minecraft/getbody.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commands/minecraft/getbody.ts') diff --git a/src/commands/minecraft/getbody.ts b/src/commands/minecraft/getbody.ts index d33192b..072a9d2 100644 --- a/src/commands/minecraft/getbody.ts +++ b/src/commands/minecraft/getbody.ts @@ -1,8 +1,8 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; import { MessageEmbed } from 'discord.js'; module.exports = class GetBodyMinecraft extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'getbody', aliases: [ @@ -33,13 +33,13 @@ module.exports = class GetBodyMinecraft extends Command { ] }); } - async run(msg: CommandoMessage, { uUsername }) { + async run(msg: CommandoMessage, { uUsername }: any) { let emb = new MessageEmbed() .setColor(0xFFCC4D) .setAuthor(uUsername, `https://minotar.net/body/${encodeURIComponent(uUsername)}`) .setImage(`https://minotar.net/body/${encodeURIComponent(uUsername)}`) console.debug(`URL for ${uUsername}:`, emb.image?.url) - msg.reply(emb) + return msg.reply(emb) } }; \ No newline at end of file -- cgit v1.2.3