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(' ');