16 lines
441 B
JavaScript
16 lines
441 B
JavaScript
const { skipTrack } = require('../utils/queueManager');
|
|
|
|
module.exports = {
|
|
name: 'skip',
|
|
execute(message) {
|
|
const guildId = message.guild.id;
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
if (!voiceChannel) {
|
|
return message.reply('You need to be in a voice channel to skip music!');
|
|
}
|
|
|
|
skipTrack(guildId);
|
|
message.channel.send('Skipped the current track!');
|
|
}
|
|
}; |