From 6b70f6599d2d3c975207a9278242631c3dcbbdf6 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 5 Jun 2019 20:10:54 +0300 Subject: [PATCH] Update index.js --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 810a699c..94a40e7d 100644 --- a/index.js +++ b/index.js @@ -78,6 +78,9 @@ client.on('message', msg => { msg.channel.send(embed); } } + if (msg.content === `${PREFIX}invite`) { + msg.channel.send('https://bit.ly/2V3D0p7') + } }); client.on('message', async msg => { @@ -86,7 +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')) { if (msg.content === `${PREFIX}invite`) { - msg.channel.send('https://bit.ly/2V3D0p7') + return undefined } msg.channel.send(':x: i\'m sorry you need to have the \'DJ\' role!') }