const {SlashCommandBuilder} = require("@discordjs/builders"); const { MessageEmbed } = require("discord.js"); module.exports = { data: new SlashCommandBuilder() .setName("pause") .setDescription("Pauses the current tune."), 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.setPaused(true); await interaction.reply("The tune has been paused."); } }