mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 08:10:18 +00:00
Update check.js
This commit is contained in:
parent
9e71c3acae
commit
25e73a10aa
@ -6,7 +6,7 @@ module.exports = function (client, msg, command) {
|
|||||||
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 to use this command!`);
|
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 to use this command!`);
|
||||||
if (client.global.db.guilds[msg.guild.id].permissions === true) {
|
if (client.global.db.guilds[msg.guild.id].permissions === true) {
|
||||||
if (client.global.db.guilds[msg.guild.id].dj) {
|
if (client.global.db.guilds[msg.guild.id].dj) {
|
||||||
if (!msg.member.cache.roles.cache.has(client.global.db.guilds[msg.guild.id].djrole)) {
|
if (!msg.member.roles.cache.has(client.global.db.guilds[msg.guild.id].djrole)) {
|
||||||
msg.channel.send('<:redx:674263474704220182> You need the `DJ` role to use this command!');
|
msg.channel.send('<:redx:674263474704220182> You need the `DJ` role to use this command!');
|
||||||
return false;
|
return false;
|
||||||
} else return true;
|
} else return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user