discord-multipurpose-bot/commands/music/skip.js
2025-09-20 01:22:31 +01:00

19 lines
552 B
JavaScript

const { SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("skip")
.setDescription("Skips the current song."),
category: "Music",
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.");
}
},
};