ops 1 mistake real

This commit is contained in:
ChomeNS 2022-11-24 20:19:31 +07:00
parent d1912556d5
commit 0f4a14bce2

View file

@ -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) {