diff --git a/src/plugins/invisibleChat/index.tsx b/src/plugins/invisibleChat/index.tsx index a83d47b84..d3358be43 100644 --- a/src/plugins/invisibleChat/index.tsx +++ b/src/plugins/invisibleChat/index.tsx @@ -91,8 +91,8 @@ function ChatBarIcon() { @@ -131,8 +131,8 @@ export default definePlugin({ { find: ".activeCommandOption", replacement: { - match: /.=.\.activeCommand,.=.\.activeCommandOption,.{1,133}(.)=\[\];/, - replace: "$&;$1.push($self.chatBarIcon());", + match: /(.)\.push.{1,50}\(\i,\{.{1,30}\},"gift"\)\)/, + replace: "$&;try{$1.push($self.chatBarIcon())}catch{}", } }, ],