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

12
buttons/volume_down.js Normal file
View File

@@ -0,0 +1,12 @@
const { useQueue } = require("discord-player")
module.exports = {
id: 'volume_down',
async execute(interaction) {
let queue = useQueue(interaction.guild.id)
let volume = queue.node.volume - 10
queue.node.setVolume(volume)
await interaction.reply({ content: `🔉 | Volume modifié à ${volume}% !`, ephemeral: true })
setTimeout(async () => { await interaction.deleteReply() }, 20000)
}
}