Skip to content

Commit

Permalink
fix(Webhook Tags): Don't mark clyde messages as Webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Oct 11, 2022
1 parent bfb4114 commit 071508c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/webhookTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
},
},
],
Expand Down

0 comments on commit 071508c

Please sign in to comment.