This commit is contained in:
ChomeNS 2022-12-18 13:07:00 +07:00
parent 65feec46da
commit 63ef5e4ff1

View file

@ -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')
} }