|
|
@ -108,13 +108,13 @@ export default definePlugin({
|
|
|
|
settings,
|
|
|
|
settings,
|
|
|
|
patches: [
|
|
|
|
patches: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
find: ".activeCommandOption",
|
|
|
|
find: "ChannelTextAreaButtons",
|
|
|
|
replacement: {
|
|
|
|
replacement: {
|
|
|
|
match: /"gift"\)\);(?<=(\i)\.push.+?disabled:(\i),.+?)/,
|
|
|
|
match: /(\i)\.push.{1,30}disabled:(\i),.{1,20}\},"gift"\)\)/,
|
|
|
|
replace: (m, array, disabled) => `${m};try{${disabled}||${array}.push($self.SilentMessageToggle(arguments[0]));}catch{}`
|
|
|
|
replace: "$&,(()=>{try{$2||$1.push($self.chatBarIcon(arguments[0]))}catch{}})()",
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
SilentMessageToggle: ErrorBoundary.wrap(SilentMessageToggle, { noop: true }),
|
|
|
|
chatBarIcon: ErrorBoundary.wrap(SilentMessageToggle, { noop: true }),
|
|
|
|
});
|
|
|
|
});
|
|
|
|