aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/silentTyping.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-19 04:53:00 -0300
committerGitHub <noreply@github.com>2023-03-19 04:53:00 -0300
commit0fb79b763d797d70d2eb6d847b0bf711c9927337 (patch)
treeb95674e930baa1a9b3651185e990b46acd82f871 /src/plugins/silentTyping.tsx
parent5873bde6a62857f92f3fb3d756914cc1efd0ec25 (diff)
downloadVencord-0fb79b763d797d70d2eb6d847b0bf711c9927337.tar.gz
Vencord-0fb79b763d797d70d2eb6d847b0bf711c9927337.tar.bz2
Vencord-0fb79b763d797d70d2eb6d847b0bf711c9927337.zip
Improvements, changes and fixes (#611)
Diffstat (limited to 'src/plugins/silentTyping.tsx')
-rw-r--r--src/plugins/silentTyping.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/silentTyping.tsx b/src/plugins/silentTyping.tsx
index 83f6415..d0edaac 100644
--- a/src/plugins/silentTyping.tsx
+++ b/src/plugins/silentTyping.tsx
@@ -82,8 +82,8 @@ export default definePlugin({
find: ".activeCommandOption",
predicate: () => settings.store.showIcon,
replacement: {
- match: /(.)\.push.{1,50}\(\i,\{.{1,30}\},"gift"\)\)/,
- replace: "$&;try{$1.push($self.chatBarIcon())}catch{}",
+ match: /(.)\.push.{1,30}disabled:(\i),.{1,20}\},"gift"\)\)/,
+ replace: "$&;try{$2||$1.push($self.chatBarIcon())}catch{}",
}
},
],