From 4c6e3585a623e25ef2489032b84eb4c9a998dc9d Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 11 Jun 2022 19:05:03 -0400 Subject: fix(hl): make channel and user blocks work --- src/lib/common/HighlightManager.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/common/HighlightManager.ts') diff --git a/src/lib/common/HighlightManager.ts b/src/lib/common/HighlightManager.ts index 6781f50..fffb266 100644 --- a/src/lib/common/HighlightManager.ts +++ b/src/lib/common/HighlightManager.ts @@ -61,6 +61,12 @@ export class HighlightManager { if (!guildCache.get(word)) guildCache.set(word, new Set()); guildCache.get(word)!.add(highlight.user); }); + + if (!this.userBlocks.has(highlight.guild)) this.userBlocks.set(highlight.guild, new Collection()); + this.userBlocks.get(highlight.guild)!.set(highlight.user, new Set(...highlight.blacklistedUsers)); + + if (!this.channelBlocks.has(highlight.guild)) this.channelBlocks.set(highlight.guild, new Collection()); + this.channelBlocks.get(highlight.guild)!.set(highlight.user, new Set(...highlight.blacklistedChannels)); } } -- cgit