mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
ops 1 mistake real
This commit is contained in:
parent
d1912556d5
commit
0f4a14bce2
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ function inject(bot, dcclient, config) {
|
|||
else if (!discord && args[0] !== hash) throw new Error(`Invalid hash`);
|
||||
} 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!');
|
||||
else if (!discord && args[0] !== hash) throw new Error(`Invalid OwnerHash`);
|
||||
else if (!discord && args[0] !== ownerhash) throw new Error(`Invalid OwnerHash`);
|
||||
}
|
||||
|
||||
if (prefix === config.discord.prefix) {
|
||||
|
|
Loading…
Reference in a new issue