From b5590e1c7f568741987259a4cf25d87e1a8259e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 31 Oct 2019 23:42:23 +0200 Subject: [PATCH] Update playlist.js --- commands/playlist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/playlist.js b/commands/playlist.js index 92a047fe..afb199b2 100644 --- a/commands/playlist.js +++ b/commands/playlist.js @@ -19,7 +19,7 @@ module.exports = { .setAuthor(client.user.username, client.user.displayAvatarURL) .setColor('#b50002') const permissions = message.channel.permissionsFor(message.author); - if (message.author.id !== client.global.devId) { + if (message.author.id !== client.config.devId) { if (client.global.db.guilds[message.guild.id].dj) { if (!message.member.roles.has(client.global.db.guilds[message.guild.id].djrole)) return message.channel.send(':x: You need the `DJ` role to modify or play the playlist!'); } else if (!permissions.has('MANAGE_GUILD')) return message.channel.send(':x: You need the `MANAGE_SERVER` permission to modify the playlist!');