From 6c0ed31c1b49485b0e31214b231ddbff2eddee6c Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 19 Feb 2020 22:05:21 +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 d1cabc42..2a1eb3eb 100644 --- a/commands/settings/setDj.js +++ b/commands/settings/setDj.js @@ -6,7 +6,7 @@ module.exports = { client.global.db.guilds[msg.guild.id].permissions = true; } 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.'); client.global.db.guilds[msg.guild.id].dj = true; } else {