diff --git a/commands/skip.js b/commands/skip.js index 82bbd841..c229d36e 100644 --- a/commands/skip.js +++ b/commands/skip.js @@ -12,8 +12,8 @@ module.exports = { if (!serverQueue || !serverQueue.playing) return msg.channel.send('<:redx:674263474704220182> There is nothing playing!'); 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.cache.has(client.global.db.guilds[msg.guild.id].djrole) && !permissions.has(command.permission)) { + if (client.global.db.guilds[msg.guild.id].permissions) { + 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);