DZ-Musicbot/commands/skip.js

17 lines
498 B
JavaScript

const { skipTrack } = require('../utils/queueManager');
module.exports = {
name: 'skip',
description: 'Skip the current track',
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, voiceChannel);
message.channel.send('Skipped the current track!');
}
};