diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts index 49b25f75..c8481105 100644 --- a/src/plugins/pronoundb/index.ts +++ b/src/plugins/pronoundb/index.ts @@ -43,17 +43,10 @@ export default definePlugin({ }, // Hijack the discord pronouns section (hidden without experiment) and add a wrapper around the text section { - find: "currentPronouns:", - all: true, - noWarn: true, + find: ".Messages.BOT_PROFILE_SLASH_COMMANDS", replacement: { - match: /\(0,.{1,3}\.jsxs?\)\((.{1,10}),(\{[^[}]*currentPronouns:[^}]*(\w)\.pronouns[^}]*\})\)/, - replace: (original, PronounComponent, pronounProps, fullProps) => { - // UserSettings - if (pronounProps.includes("onPronounsChange")) return original; - - return `${fullProps}&&Vencord.Plugins.plugins.PronounDB.PronounsProfileWrapper(${PronounComponent}, ${pronounProps}, ${fullProps})`; - } + match: /\(0,.\.jsx\)\((?.{1,2}\..),(?{currentPronouns.+?:(?.{1,2})\.pronouns.+?})\)/, + replace: "$&&Vencord.Plugins.plugins.PronounDB.PronounsProfileWrapper($,$,$)" } }, // Make pronouns experiment be enabled by default