From 728ea82a7de9fd92c77b4acb84bec7ed8723460c Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 16 Jun 2019 16:25:12 +0300 Subject: [PATCH] Update index.js --- index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0980a2ef..a750aef4 100644 --- a/index.js +++ b/index.js @@ -202,9 +202,12 @@ Please provide a value to select one of the search results ranging from __1-10__ } if (msg.content === `${PREFIX}`) return; msg.channel.send(':x: Unknown command! Type -help for the list of commands!') - 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; + var coms = [] + if (msg.content.includes(coms[i])) { + 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; + } } } else {