added queue system

This commit is contained in:
Hazem Krimi
2020-05-05 09:19:02 +01:00
parent ff0b556347
commit 866403f80a
5 changed files with 138 additions and 43 deletions
+6 -2
View File
@@ -7,11 +7,15 @@ module.exports = class Leave extends Command {
memberName: 'leave',
group: 'music',
description: 'leaves a voice channel',
guildOnly: true
guildOnly: true,
throttling: {
usages: 1,
duration: 5
}
});
}
async run(message) {
run = message => {
if (!message.member.voice.channel) return message.reply('you need to join a channel!');
const voiceChannel = message.member.voice.channel;