You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
463 B

module.exports = {
name: 'skip',
description: 'Skip a song!',
roles: ['732550362199752764', '732345527143759943'],
execute(message) {
const serverQueue = message.client.queue.get(message.guild.id);
if (!message.member.voice.channel) return message.channel.send('You have to be in a voice channel to stop the music!');
if (!serverQueue) return message.channel.send('There is no song that I could skip!');
serverQueue.connection.dispatcher.end();
},
};