From 1c4213c0c4d86077cd0d6067118985c226465d76 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 19 Feb 2020 22:00:42 +0200 Subject: [PATCH] Update skip.js --- commands/skip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/skip.js b/commands/skip.js index 0396c3e2..ad2eed4b 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -13,7 +13,7 @@ module.exports = { if (msg.author.id !== client.config.devId) { if (msg.member.voice.channel !== serverQueue.voiceChannel) return msg.channel.send('<:redx:674263474704220182> I\'m sorry but you need to be in the same voice channel as Musix!'); if (client.global.db.guilds[msg.guild.id].permissions === true) { - if (!msg.member.roles.has(client.global.db.guilds[msg.guild.id].djrole) && !permissions.has(command.permission)) { + if (!msg.member.roles.cache.has(client.global.db.guilds[msg.guild.id].djrole) && !permissions.has(command.permission)) { return vote(serverQueue, msg, client); } else { return skipSong(serverQueue, msg);