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.

10 lines
463 B

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