diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-12 01:40:05 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-12 01:40:10 +0200 |
commit | 071508c61aca2eeca21379b8ad1a0907949f2022 (patch) | |
tree | b98c39a0890d512d0c691f2ed155a4a29f36b7b7 /src/plugins | |
parent | bfb4114e18988766c4c4e4c1e24467390be0d7a9 (diff) | |
download | Vencord-071508c61aca2eeca21379b8ad1a0907949f2022.tar.gz Vencord-071508c61aca2eeca21379b8ad1a0907949f2022.tar.bz2 Vencord-071508c61aca2eeca21379b8ad1a0907949f2022.zip |
fix(Webhook Tags): Don't mark clyde messages 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 70a1010..8608711 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(${type}==${BotTag}.Z.Types.BOT&&arguments[0].user.isNonUserBot()){${type}=${BotTag}.Z.Types.WEBHOOK}${orig}`, + `if(arguments[0].message.webhookId){${type}=${BotTag}.Z.Types.WEBHOOK}${orig}`, }, }, ], |