From 6af5b45823a09b04d75dc99c7c3ae936800a1848 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Thu, 6 Jun 2019 07:46:44 +0300 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b4827ed8..3143201f 100644 --- a/index.js +++ b/index.js @@ -85,7 +85,7 @@ client.on('message', async msg => { var textcoms = ['!test','!restart','!help','!info','!invite'] if (msg.author.bot) return undefined; if (msg.content.startsWith(`${PREFIX}`)) { - if (msg.content === textcoms) return; + if (msg.content === textcoms) return undefined; 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 you need to have the \'DJ\' role!')