summaryrefslogtreecommitdiff
path: root/src/commands/minecraft/getbody.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-06-27 22:52:54 -0700
committer8cy <[email protected]>2020-06-27 22:52:54 -0700
commit80951013e391aab140800e4f386867e6c391553f (patch)
tree3d7101237ef1cd8d6fe2a2fab751a2dc55ae7d84 /src/commands/minecraft/getbody.ts
parentmore config shit (diff)
downloaddep-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/minecraft/getbody.ts')
-rw-r--r--src/commands/minecraft/getbody.ts8
1 files changed, 4 insertions, 4 deletions
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