From 0f4a14bce2e3868d6fb9fdf76df0cf5b3b5bf62b Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Thu, 24 Nov 2022 20:19:31 +0700 Subject: [PATCH] ops 1 mistake real --- plugins/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands.js b/plugins/commands.js index e23966a..288703b 100644 --- a/plugins/commands.js +++ b/plugins/commands.js @@ -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) {