summaryrefslogtreecommitdiff
path: root/src/commands/anime/waifu.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/anime/waifu.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/anime/waifu.ts')
-rw-r--r--src/commands/anime/waifu.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/anime/waifu.ts b/src/commands/anime/waifu.ts
index 80363e3..d72348f 100644
--- a/src/commands/anime/waifu.ts
+++ b/src/commands/anime/waifu.ts
@@ -1,10 +1,11 @@
-import { Command, CommandoMessage } from 'discord.js-commando';
+import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
import request from 'node-superfetch';
import { MessageEmbed } from 'discord.js';
+//@ts-ignore yes it does tf
import { shorten } from '../../utils/Util.js'
module.exports = class WaifuAnime extends Command {
- constructor(client) {
+ constructor(client: CommandoClient) {
super(client, {
name: 'waifu',
aliases: ['thiswaifudoesnotexist', 'this-waifu-does-not-exist'],
@@ -29,6 +30,6 @@ module.exports = class WaifuAnime extends Command {
.setDescription(shorten(text, 1000))
.setColor(0xFFCC4D)
.setThumbnail(`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`)
- msg.reply(emb)
+ return msg.reply(emb)
}
}; \ No newline at end of file