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/shuffle.js Executable file
View File

@@ -0,0 +1,13 @@
const { SlashCommandBuilder } = require('discord.js')
const { useQueue } = require("discord-player")
module.exports = {
data: new SlashCommandBuilder()
.setName('shuffle')
.setDescription('Mélange la file d\'attente.'),
async execute(interaction) {
let queue = useQueue(interaction.guild.id)
queue.tracks.shuffle()
return await interaction.reply('File d\'attente mélangée !')
}
}