diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-12 19:42:36 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-12 19:42:36 +0200 |
commit | 83d480a68cfed2adee18b9a6b74634644cefaacc (patch) | |
tree | 800a075a2f3ec7c8c3da1c69094ed3a3def1d3e6 /src/plugins | |
parent | ebe62a17907b980d0c25177f647cb45135475a17 (diff) | |
download | Vencord-83d480a68cfed2adee18b9a6b74634644cefaacc.tar.gz Vencord-83d480a68cfed2adee18b9a6b74634644cefaacc.tar.bz2 Vencord-83d480a68cfed2adee18b9a6b74634644cefaacc.zip |
Fix bots showing as webhook
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/webhookTags.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/webhookTags.ts b/src/plugins/webhookTags.ts index 8608711..f26a25a 100644 --- a/src/plugins/webhookTags.ts +++ b/src/plugins/webhookTags.ts @@ -26,7 +26,7 @@ export default definePlugin({ replacement: { match: /return null==(.)\?null:.\.createElement\((.)\.Z/, replace: (orig, type, BotTag) => - `if(arguments[0].message.webhookId){${type}=${BotTag}.Z.Types.WEBHOOK}${orig}`, + `if(arguments[0].message.webhookId&&arguments[0].user.isNonUserBot()){${type}=${BotTag}.Z.Types.WEBHOOK}${orig}`, }, }, ], |