From a637d929f556d59a05c77841d32e7048b9387a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 31 Oct 2019 23:44:37 +0200 Subject: [PATCH] Update pause.js --- commands/pause.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/pause.js b/commands/pause.js index 955d7cf6..9c0a770d 100644 --- a/commands/pause.js +++ b/commands/pause.js @@ -9,7 +9,7 @@ module.exports = { const { voiceChannel } = message.member; if (serverQueue && serverQueue.playing === true) { if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to pause the music!'); - if (message.author.id !== client.global.devId) { + if (message.author.id !== client.config.devId) { if (client.global.db.guilds[message.guild.id].permissions === true) { 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 pause the music!'); @@ -22,4 +22,4 @@ module.exports = { } return message.channel.send(':x: There is nothing playing.'); } -}; \ No newline at end of file +};