From e9c56da6f7ea1a70aa836c7e46a9c57aa081a30c Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 1 Mar 2022 23:03:44 -0500 Subject: feat(hl): add owner bypass :smirk: --- src/listeners/message/highlight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listeners/message/highlight.ts b/src/listeners/message/highlight.ts index c751ad5..c3a6ce0 100644 --- a/src/listeners/message/highlight.ts +++ b/src/listeners/message/highlight.ts @@ -12,7 +12,7 @@ export default class HighlightListener extends BushListener { public override async exec(...[message]: BushClientEvents['messageCreate']) { if (!message.inGuild()) return; if (message.author.bot || message.system) return; - if (!(await message.guild.hasFeature('highlight'))) return; // allows highlighting to be disabled on a guild-by-guild basis + if (!((await message.guild.hasFeature('highlight')) && !message.author.isOwner())) return; // allows highlighting to be disabled on a guild-by-guild basis const res = client.highlightManager.checkMessage(message); -- cgit