Création Repo pour mon bot Le Tamiseur
This commit is contained in:
11
buttons/previous.js
Normal file
11
buttons/previous.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user