Update (v6.0.0)

This commit is contained in:
Zerio
2021-09-23 22:22:33 +02:00
parent 4c2069cdf9
commit 5dcf2affc8
45 changed files with 418 additions and 465 deletions

18
commands/music/back.js Normal file
View File

@@ -0,0 +1,18 @@
module.exports = {
name: 'back',
aliases: ['previous'],
utilisation: '{prefix}back',
voiceChannel: true,
async execute(client, message) {
const queue = player.getQueue(message.guild.id);
if (!queue || !queue.playing) return message.channel.send(`No music currently playing ${message.author}... try again ? ❌`);
if (!queue.previousTracks[1]) return message.channel.send(`There was no music played before ${message.author}... try again ? ❌`);
await queue.back();
message.channel.send(`Playing the **previous** track ✅`);
},
};