diff options
author | fawn <fawn@envs.net> | 2023-02-10 21:41:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 22:41:49 +0100 |
commit | d95be1acbaa282c53508a33d85cdda2ea76c50da (patch) | |
tree | 48145b1ff9c4455956d48c8b3c840323167fa96e /src/plugins/pronoundb | |
parent | 1d995e58f515dbeb908ba34bf70f829bfd3ccfac (diff) | |
download | Vencord-d95be1acbaa282c53508a33d85cdda2ea76c50da.tar.gz Vencord-d95be1acbaa282c53508a33d85cdda2ea76c50da.tar.bz2 Vencord-d95be1acbaa282c53508a33d85cdda2ea76c50da.zip |
refactor: update plugins to use `$self` (#478)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/pronoundb')
-rw-r--r-- | src/plugins/pronoundb/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts index c848110..7ebe919 100644 --- a/src/plugins/pronoundb/index.ts +++ b/src/plugins/pronoundb/index.ts @@ -38,7 +38,7 @@ export default definePlugin({ find: "showCommunicationDisabledStyles", replacement: { match: /(?<=return\s*\(0,\w{1,3}\.jsxs?\)\(.+!\w{1,3}&&)(\(0,\w{1,3}.jsxs?\)\(.+?\{.+?\}\))/, - replace: "[$1, Vencord.Plugins.plugins.PronounDB.PronounsChatComponent(e)]" + replace: "[$1, $self.PronounsChatComponent(e)]" } }, // Hijack the discord pronouns section (hidden without experiment) and add a wrapper around the text section @@ -46,7 +46,7 @@ export default definePlugin({ find: ".Messages.BOT_PROFILE_SLASH_COMMANDS", replacement: { match: /\(0,.\.jsx\)\((?<PronounComponent>.{1,2}\..),(?<pronounProps>{currentPronouns.+?:(?<fullProps>.{1,2})\.pronouns.+?})\)/, - replace: "$<fullProps>&&Vencord.Plugins.plugins.PronounDB.PronounsProfileWrapper($<PronounComponent>,$<pronounProps>,$<fullProps>)" + replace: "$<fullProps>&&$self.PronounsProfileWrapper($<PronounComponent>,$<pronounProps>,$<fullProps>)" } }, // Make pronouns experiment be enabled by default |