1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 02:16:23 +00:00

silentTyping: fix showIcon toggle (#1898)

This commit is contained in:
AutumnVN 2023-10-26 07:50:33 +07:00 committed by Luna
parent d904bbcff3
commit 2e90901e9b

View file

@ -86,6 +86,7 @@ export default definePlugin({
},
{
find: "ChannelTextAreaButtons",
predicate: () => settings.store.showIcon,
replacement: {
match: /(\i)\.push.{1,30}disabled:(\i),.{1,20}\},"gift"\)\)/,
replace: "$&,(()=>{try{$2||$1.push($self.chatBarIcon(arguments[0]))}catch{}})()",