aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/pronoundb/index.ts
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-08 00:11:59 -0300
committerGitHub <noreply@github.com>2023-03-08 00:11:59 -0300
commit40395d562aeadaeaa88c5bc106797ea5a4ee51e4 (patch)
treef5e96be8b32a670bcd5fe86d41ef5c47c6ee3b44 /src/plugins/pronoundb/index.ts
parent7322c3af047489e122b59b01825ba5473dc96a62 (diff)
downloadVencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.tar.gz
Vencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.tar.bz2
Vencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.zip
Improvements for patches and misc stuff (#582)
Diffstat (limited to 'src/plugins/pronoundb/index.ts')
-rw-r--r--src/plugins/pronoundb/index.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts
index 7ebe919..820b66e 100644
--- a/src/plugins/pronoundb/index.ts
+++ b/src/plugins/pronoundb/index.ts
@@ -41,7 +41,7 @@ export default definePlugin({
replace: "[$1, $self.PronounsChatComponent(e)]"
}
},
- // Hijack the discord pronouns section (hidden without experiment) and add a wrapper around the text section
+ // Hijack the discord pronouns section and add a wrapper around the text section
{
find: ".Messages.BOT_PROFILE_SLASH_COMMANDS",
replacement: {
@@ -49,12 +49,12 @@ export default definePlugin({
replace: "$<fullProps>&&$self.PronounsProfileWrapper($<PronounComponent>,$<pronounProps>,$<fullProps>)"
}
},
- // Make pronouns experiment be enabled by default
+ // Force enable pronouns component ignoring the experiment value
{
- find: "2022-01_pronouns",
+ find: ".Messages.USER_POPOUT_PRONOUNS",
replacement: {
- match: "!1", // false
- replace: "!0"
+ match: /\i\.\i\.useExperiment\({}\)\.showPronouns/,
+ replace: "true"
}
}
],