diff --git a/plugins/commands.js b/plugins/commands.js index cc7d7f4..48434a0 100644 --- a/plugins/commands.js +++ b/plugins/commands.js @@ -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!') 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!') + 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') }