From 231c15010963d9e26029b76e385cb7602a9357cb Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 25 Jul 2022 01:33:33 +0300 Subject: [PATCH] bugfix --- src/structure/components/observers/CommandHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/components/observers/CommandHandler.js b/src/structure/components/observers/CommandHandler.js index 6ea421d..82b666e 100644 --- a/src/structure/components/observers/CommandHandler.js +++ b/src/structure/components/observers/CommandHandler.js @@ -46,7 +46,7 @@ class CommandHandler extends Observer { const silent = inhibitors.filter((i) => i.inhibitor.silent); const nonsilent = inhibitors.filter((i) => !i.inhibitor.silent); if (silent.length && silent.some((i) => i.inhibitor.id === 'channelIgnore') - || nonsilent.length && nonsilent.some((i) => i.args.missing.includes('SendMessages')) + || nonsilent.length && nonsilent.some((i) => i.args?.missing.includes('SendMessages')) || silent.length && !nonsilent.length) return; if (inhibitors.length) return this._generateError(invoker, { type: 'inhibitor', ...inhibitors[0] }).catch(this.logger.error);