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
@@ -8,11 +8,15 @@ module.exports = class JoinCommand extends Command {
group: 'music',
description: 'joins a voice channel',
aliases: ['summon'],
guildOnly: true
guildOnly: true,
throttling: {
usages: 1,
duration: 5
}
});
}
async run(message) {
run = async message => {
const voiceChannel = message.member.voice.channel;
if (!voiceChannel) return message.reply('you need to join a channel!');