mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
Update index.js
This commit is contained in:
parent
bfb105808d
commit
b0eac04971
3
index.js
3
index.js
@ -88,9 +88,6 @@ var textcoms = ['!test','!restart','!help','!info','!invite']
|
|||||||
if (msg.content === textcoms) return;
|
if (msg.content === textcoms) return;
|
||||||
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')) {
|
||||||
if (msg.content === `${PREFIX}invite`) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
msg.channel.send(':x: i\'m sorry you need to have the \'DJ\' role!')
|
msg.channel.send(':x: i\'m sorry you need to have the \'DJ\' role!')
|
||||||
}
|
}
|
||||||
if (msg.member.roles.find(x => x.name === 'DJ')) {
|
if (msg.member.roles.find(x => x.name === 'DJ')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user