From 8c435855e647ee7aef8578e253caf91fe44c67cc Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 16 Apr 2020 04:56:37 -0700 Subject: The Purification, v7.0.0 add: - aesthetic, oddcase, stretch, surreal - culturedtext - dogeify - howify - insult - lorem - spongebob Other Stuff: - many refactoring --- src/commands/voice/psycho.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commands/voice/psycho.ts') diff --git a/src/commands/voice/psycho.ts b/src/commands/voice/psycho.ts index 827c00a..115b0b8 100644 --- a/src/commands/voice/psycho.ts +++ b/src/commands/voice/psycho.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'; @@ -20,7 +20,7 @@ module.exports = class PsychoVoice extends Command { examples: ['uwu!psycho'] }); } - async run(msg: Message, { query }) { + async run(msg: CommandoMessage, { query }) { const voiceChannel = msg.member.voice.channel; if (!voiceChannel) return msg.say('Please join a channel and try again. ' + emoji.random()); @@ -119,7 +119,7 @@ module.exports = class PsychoVoice 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() -- cgit v1.2.3