mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
Update setDj.js
This commit is contained in:
parent
1c4213c0c4
commit
e8363d4550
@ -5,7 +5,7 @@ module.exports = {
|
||||
if (!client.global.db.guilds[msg.guild.id].permissions) {
|
||||
client.global.db.guilds[msg.guild.id].permissions = true;
|
||||
}
|
||||
if (msg.guild.roles.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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user