mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 02:00:20 +00:00
Update index.js
This commit is contained in:
parent
99e5c6903d
commit
728ea82a7d
3
index.js
3
index.js
@ -202,11 +202,14 @@ Please provide a value to select one of the search results ranging from __1-10__
|
||||
}
|
||||
if (msg.content === `${PREFIX}`) return;
|
||||
msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
|
||||
var coms = []
|
||||
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!')
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
const args = msg.content.split(' ');
|
||||
const searchString = args.slice(1).join(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user