discord-multipurpose-bot/commands/music/skip.js
2025-09-19 23:54:20 +01:00

17 lines
530 B
JavaScript

const { SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("skip")
.setDescription("Skips the current song."),
async execute(interaction, client) {
const queue = client.distube.getQueue(interaction.guildId);
if (!queue) return interaction.reply("❌ No songs in queue!");
try {
await queue.skip();
interaction.reply("⏭️ Skipped the current song!");
} catch (error) {
interaction.reply("❌ Failed to skip.");
}
},
};