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

Update setDj.js

This commit is contained in:
MatteZ02 2020-02-19 22:05:21 +02:00
parent e8363d4550
commit 6c0ed31c1b

View File

@ -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 {