13 lines
407 B
JavaScript
Executable File
13 lines
407 B
JavaScript
Executable File
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 !')
|
|
}
|
|
} |