1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-06-10 21:22:50 +03:00
parent 1e645020cc
commit 38197d8ce9

View File

@ -89,6 +89,7 @@ client.on('message', async msg => {
if (msg.member.guild.roles.find(x => x.name === 'DJ')) { if (msg.member.guild.roles.find(x => x.name === 'DJ')) {
if (!msg.member.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!') 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')) { if (msg.member.roles.find(x => x.name === 'DJ')) {
const args = msg.content.split(' '); const args = msg.content.split(' ');