aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-12 01:40:05 +0200
committerVendicated <vendicated@riseup.net>2022-10-12 01:40:10 +0200
commit071508c61aca2eeca21379b8ad1a0907949f2022 (patch)
treeb98c39a0890d512d0c691f2ed155a4a29f36b7b7 /src
parentbfb4114e18988766c4c4e4c1e24467390be0d7a9 (diff)
downloadVencord-071508c61aca2eeca21379b8ad1a0907949f2022.tar.gz
Vencord-071508c61aca2eeca21379b8ad1a0907949f2022.tar.bz2
Vencord-071508c61aca2eeca21379b8ad1a0907949f2022.zip
fix(Webhook Tags): Don't mark clyde messages as Webhook
Diffstat (limited to 'src')
-rw-r--r--src/plugins/webhookTags.ts2
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}`,
},
},
],