diff options
| author | 8cy <[email protected]> | 2020-04-16 04:56:37 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-16 04:56:37 -0700 |
| commit | 8c435855e647ee7aef8578e253caf91fe44c67cc (patch) | |
| tree | ae0bb59de10ecec5ca2fc01dfa9190efd1f177ab /src/commands/voice/psycho.ts | |
| parent | no longer hosting ws, v6.0.4 (diff) | |
| download | dep-core-8c435855e647ee7aef8578e253caf91fe44c67cc.tar.xz dep-core-8c435855e647ee7aef8578e253caf91fe44c67cc.zip | |
The Purification, v7.0.0
add:
- aesthetic, oddcase, stretch, surreal
- culturedtext
- dogeify
- howify
- insult
- lorem
- spongebob
Other Stuff:
- many refactoring
Diffstat (limited to 'src/commands/voice/psycho.ts')
| -rw-r--r-- | src/commands/voice/psycho.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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() |