From 83d480a68cfed2adee18b9a6b74634644cefaacc Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 12 Oct 2022 19:42:36 +0200 Subject: [PATCH] Fix bots showing as webhook --- src/plugins/webhookTags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/webhookTags.ts b/src/plugins/webhookTags.ts index 860871155..f26a25a43 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}`, }, }, ],