const { useHistory } = require('discord-player') module.exports = { id: 'previous', async execute(interaction) { let history = useHistory(interaction.guild.id) await history.previous() await interaction.reply({ content: 'Musique précédente jouée !', ephemeral: true }) setTimeout(async () => { await interaction.deleteReply() }, 20000) } }