1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 06:43:17 +00:00

Update skip.js

This commit is contained in:
MatteZ02 2020-02-19 22:00:42 +02:00
parent c09163bc0d
commit 1c4213c0c4

View File

@ -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);