From 38197d8ce984a872930e3b827a4cb1922c2185c1 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Mon, 10 Jun 2019 21:22:50 +0300 Subject: [PATCH] Update index.js --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 2977ee6c..8f6136cc 100644 --- a/index.js +++ b/index.js @@ -89,6 +89,7 @@ client.on('message', async msg => { if (msg.member.guild.roles.find(x => x.name === 'DJ')) { if (!msg.member.roles.find(x => x.name === 'DJ')) { msg.channel.send(':x: i\'m sorry but you need to have the \'DJ\' role use music commands!') + return undefined; } if (msg.member.roles.find(x => x.name === 'DJ')) { const args = msg.content.split(' ');