diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-01 23:03:44 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-01 23:03:44 -0500 |
commit | e9c56da6f7ea1a70aa836c7e46a9c57aa081a30c (patch) | |
tree | d5c72357117f61f49d0d45d7756d3210f6ef766b /src | |
parent | 13fb8f4eb507c5a8421fa495346ba8097ebcaff0 (diff) | |
download | tanzanite-e9c56da6f7ea1a70aa836c7e46a9c57aa081a30c.tar.gz tanzanite-e9c56da6f7ea1a70aa836c7e46a9c57aa081a30c.tar.bz2 tanzanite-e9c56da6f7ea1a70aa836c7e46a9c57aa081a30c.zip |
feat(hl): add owner bypass :smirk:
Diffstat (limited to 'src')
-rw-r--r-- | src/listeners/message/highlight.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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); |