From e8363d4550b3bcee77008adac1ecd2b9344db697 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 19 Feb 2020 22:04:06 +0200 Subject: [PATCH] Update setDj.js --- commands/settings/setDj.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/settings/setDj.js b/commands/settings/setDj.js index 9c0be4a2..d1cabc42 100644 --- a/commands/settings/setDj.js +++ b/commands/settings/setDj.js @@ -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;