1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-22 21:13:18 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-06-16 16:25:12 +03:00
parent 99e5c6903d
commit 728ea82a7d

View File

@ -202,9 +202,12 @@ Please provide a value to select one of the search results ranging from __1-10__
} }
if (msg.content === `${PREFIX}`) return; if (msg.content === `${PREFIX}`) return;
msg.channel.send(':x: Unknown command! Type -help for the list of commands!') msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
if (!msg.member.roles.find(x => x.name === 'DJ')) { var coms = []
msg.channel.send(':x: i\'m sorry but you need to have the \'DJ\' role use music commands!') if (msg.content.includes(coms[i])) {
return; 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 { else {