summaryrefslogtreecommitdiff
path: root/src/commands/voice/abee.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/voice/abee.ts')
-rw-r--r--src/commands/voice/abee.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/voice/abee.ts b/src/commands/voice/abee.ts
index 939b575..2af71af 100644
--- a/src/commands/voice/abee.ts
+++ b/src/commands/voice/abee.ts
@@ -1,6 +1,6 @@
import ytdl from 'ytdl-core';
-import { Command } from 'discord.js-commando';
-import { MessageEmbed, Message } from 'discord.js';
+import { Command, CommandoMessage } from 'discord.js-commando';
+import { MessageEmbed } from 'discord.js';
import Youtube from 'simple-youtube-api';
//const { youtubeAPI } = require('../../config.json');
import config from '../../config.json';
@@ -21,7 +21,7 @@ module.exports = class ABeeVoice extends Command {
examples: ['uwu!abee', 'uwu!a-bee'],
});
}
- async run(msg: Message) {
+ async run(msg: CommandoMessage) {
const voiceChannel = msg.member.voice.channel;
if (!voiceChannel) return msg.say('Please join a channel and try again. ' + emoji.random());
@@ -120,7 +120,7 @@ module.exports = class ABeeVoice extends Command {
});
});
}
- playSong(queue, msg) {
+ playSong(queue, msg: CommandoMessage) {
const classThis = this; // use classThis instead of 'this' because of lexical scope below
queue[0].voiceChannel
.join()