mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-12 23:20:17 +00:00
Update setDj.js
This commit is contained in:
parent
e8363d4550
commit
6c0ed31c1b
@ -6,7 +6,7 @@ module.exports = {
|
|||||||
client.global.db.guilds[msg.guild.id].permissions = true;
|
client.global.db.guilds[msg.guild.id].permissions = true;
|
||||||
}
|
}
|
||||||
if (msg.guild.roles.cache.find(x => x.name === "DJ")) {
|
if (msg.guild.roles.cache.find(x => x.name === "DJ")) {
|
||||||
client.global.db.guilds[msg.guild.id].djrole = msg.guild.roles.find(x => x.name === "DJ").id;
|
client.global.db.guilds[msg.guild.id].djrole = msg.guild.roles.cache.find(x => x.name === "DJ").id;
|
||||||
msg.channel.send('<:green_check_mark:674265384777416705> I found a `DJ` role from this guild! This role is now the DJ role.');
|
msg.channel.send('<:green_check_mark:674265384777416705> I found a `DJ` role from this guild! This role is now the DJ role.');
|
||||||
client.global.db.guilds[msg.guild.id].dj = true;
|
client.global.db.guilds[msg.guild.id].dj = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user