1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-05 02:30:49 +00:00

Update index.js

This commit is contained in:
Matte
2019-06-16 17:57:55 +03:00
committed by GitHub
parent fd30344bd8
commit 0f2a622a84

View File

@ -205,7 +205,7 @@ Please provide a value to select one of the search results ranging from __1-10__
for (var i = 0; i < coms.length; i++) {
if (msg.content.includes(coms[i])) {
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 to use music commands!')
return;
}
}