diff options
Diffstat (limited to 'commands/voice/skip.js')
| -rw-r--r-- | commands/voice/skip.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/commands/voice/skip.js b/commands/voice/skip.js new file mode 100644 index 0000000..c819a67 --- /dev/null +++ b/commands/voice/skip.js @@ -0,0 +1,25 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class SkipVoice extends Command { + constructor(client) { + super(client, { + name: 'skip', + group: 'voice', + memberName: 'skip', + description: 'skip 1 song in the queue', + guildOnly: true + }); + } + run(msg) { + const voiceChannel = msg.member.voice.channel; + if (!voiceChannel) return msg.reply('join a channel and try again'); + + if ( + typeof msg.guild.musicData.songDispatcher == 'undefined' || + msg.guild.musicData.songDispatcher == null + ) { + return msg.reply('no songs playing right now bruh'); + } + msg.guild.musicData.songDispatcher.end(); + } +};
\ No newline at end of file |