fix(Webhook Tags): Don't mark clyde messages as Webhook
This commit is contained in:
parent
bfb4114e18
commit
071508c61a
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ export default definePlugin({
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /return null==(.)\?null:.\.createElement\((.)\.Z/,
|
match: /return null==(.)\?null:.\.createElement\((.)\.Z/,
|
||||||
replace: (orig, type, BotTag) =>
|
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}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue