const { SlashCommandBuilder } = require('discord.js') const { useHistory } = require('discord-player') module.exports = { data: new SlashCommandBuilder() .setName('previous') .setDescription('Joue la musique précédente.'), async execute(interaction) { let history = useHistory(interaction.guild.id) await history.previous() return await interaction.reply('Musique précédente jouée !') } }