diff options
Diffstat (limited to 'src')
-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}`, }, }, ], |