Création Repo pour mon bot Le Tamiseur

This commit is contained in:
Zachary Guénot
2023-04-23 19:30:04 +02:00
commit a879b38c3e
50 changed files with 7159 additions and 0 deletions

13
commands/music/previous.js Executable file
View File

@@ -0,0 +1,13 @@
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 !')
}
}