aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-12 19:42:36 +0200
committerVendicated <vendicated@riseup.net>2022-10-12 19:42:36 +0200
commit83d480a68cfed2adee18b9a6b74634644cefaacc (patch)
tree800a075a2f3ec7c8c3da1c69094ed3a3def1d3e6 /src/plugins
parentebe62a17907b980d0c25177f647cb45135475a17 (diff)
downloadVencord-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.ts2
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}`,
},
},
],