diff options
author | V <vendicated@riseup.net> | 2023-05-15 18:20:34 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-05-15 18:20:34 +0200 |
commit | bb83c0b672abc5cb812e23d704880e1750fa61e6 (patch) | |
tree | e75510ae55a7a03e1c71bdd3dc300b5b1daa115c /src/plugins/pronoundb | |
parent | 2815509c00bf5865f8fe9559f7e456d6455299ff (diff) | |
download | Vencord-bb83c0b672abc5cb812e23d704880e1750fa61e6.tar.gz Vencord-bb83c0b672abc5cb812e23d704880e1750fa61e6.tar.bz2 Vencord-bb83c0b672abc5cb812e23d704880e1750fa61e6.zip |
[skip ci] PronounDB: Do not add pronouns to automod messages
Diffstat (limited to 'src/plugins/pronoundb')
-rw-r--r-- | src/plugins/pronoundb/components/PronounsChatComponent.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/pronoundb/components/PronounsChatComponent.tsx b/src/plugins/pronoundb/components/PronounsChatComponent.tsx index e302676..3e51544 100644 --- a/src/plugins/pronoundb/components/PronounsChatComponent.tsx +++ b/src/plugins/pronoundb/components/PronounsChatComponent.tsx @@ -26,10 +26,12 @@ import { settings } from "../settings"; const styles: Record<string, string> = findByPropsLazy("timestampInline"); +const AUTO_MODERATION_ACTION = 24; + function shouldShow(message: Message): boolean { if (!settings.store.showInMessages) return false; - if (message.author.bot || message.author.system) + if (message.author.bot || message.author.system || message.type === AUTO_MODERATION_ACTION) return false; if (!settings.store.showSelf && message.author.id === UserStore.getCurrentUser().id) return false; |