mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
Update skip.js
This commit is contained in:
parent
869debb1b3
commit
1fe65e0f72
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user