mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
0day fix
This commit is contained in:
parent
65feec46da
commit
63ef5e4ff1
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ function inject (bot, dcclient, config) {
|
||||||
if (discord && !message.member?.roles?.cache?.some((role) => role.name === 'Trusted')) throw new Error('You\'re not in the trusted role!')
|
if (discord && !message.member?.roles?.cache?.some((role) => role.name === 'Trusted')) throw new Error('You\'re not in the trusted role!')
|
||||||
else if (!discord && args[0] !== hash) throw new Error('Invalid hash')
|
else if (!discord && args[0] !== hash) throw new Error('Invalid hash')
|
||||||
} else if (command.name !== 'validate' && command.trusted === 2) {
|
} else if (command.name !== 'validate' && command.trusted === 2) {
|
||||||
if (discord && !message.member?.roles?.cache?.some((role) => role.name === 'Trusted')) throw new Error('You\'re not in the trusted role!')
|
if (discord && !message.member?.roles?.cache?.some((role) => role.name === 'ChomeNS')) throw new Error('You\'re not in the owner of this bot!')
|
||||||
else if (!discord && args[0] !== ownerhash) throw new Error('Invalid OwnerHash')
|
else if (!discord && args[0] !== ownerhash) throw new Error('Invalid OwnerHash')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue