Lanbot_Music/commands/music/skip.js

16 lines
549 B
JavaScript
Raw Normal View History

2022-04-03 04:34:37 +02:00
module.exports = {
name: 'skip',
aliases: ['sk'],
utilisation: '{prefix}skip',
voiceChannel: true,
execute(client, message) {
const queue = player.getQueue(message.guild.id);
if (!queue || !queue.playing) return message.channel.send(`No music currently playing ${message.author}... try again ? ❌`);
const success = queue.skip();
return message.channel.send(success ? `Current music ${queue.current.title} skipped ✅` : `Something went wrong ${message.author}... try again ? ❌`);
},
};