From 97ee60c9a2b947f866638b8a8781a2e72b1cc3d5 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Thu, 30 May 2019 16:50:56 +0300 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2afa6bfd..b158da63 100644 --- a/index.js +++ b/index.js @@ -51,12 +51,12 @@ client.on('message', msg => { msg.channel.send(embed); } if (msg.content === `${PREFIX}info`) { - var dj = guild.roles.find(x => x.name === 'DJ') ? false : true; + var dj = msg.guild.roles.find(x => x.name === 'DJ') ? false : true; var line = '**>-----------------------------------------------------------------------<**'; const embed = new Discord.RichEmbed() .setTitle('**Musix instructions and info**:') .addField('On any errors you should use the !stop command end reset the queue.', line, true) - .addField('If your guild has a role called \'DJ\' you will need it to play music! If you don\'t, Everyone can play music.', 'DJ role existance:' + dj, true) + .addField('If your guild has a role called \'DJ\' you will need it to play music! If you don\'t, Everyone can play music.', 'DJ role existance: ' + dj, true) .addField('Musix support server: https://discord.gg/rvHuJtB', line, true) .addField('If you have any problems with musix please contact Matte#5254!', line, true) .setAuthor('Musix', 'https://cdn.discordapp.com/avatars/572405135658188800/04c6f22b7600ddecfbc245dd3ec10f9f.png?size=2048')