const {SlashCommandBuilder} = require("@discordjs/builders"); const { MessageEmbed } = require("discord.js"); module.exports = { data: new SlashCommandBuilder() .setName("exit") .setDescription("Kills the bot."), execute: async ({client, interaction}) => { // Get the queue for the server const queue = client.player.getQueue(interaction.guild); // If there is no queue, return if (!queue){ await interaction.reply("There are no tunes in the queue."); return; } // Pause the current song queue.destroy(); await interaction.reply("Ok Bye"); } }