fix(Webhook Tags): Don't mark clyde messages as Webhook

This commit is contained in:
Vendicated 2022-10-12 01:40:05 +02:00
parent bfb4114e18
commit 071508c61a
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: EC781ADFB93EFFA3

View file

@ -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}`,
},
},
],