From d95be1acbaa282c53508a33d85cdda2ea76c50da Mon Sep 17 00:00:00 2001 From: fawn Date: Fri, 10 Feb 2023 21:41:49 +0000 Subject: refactor: update plugins to use `$self` (#478) Co-authored-by: Ven --- src/plugins/pronoundb/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/pronoundb') 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\)\((?.{1,2}\..),(?{currentPronouns.+?:(?.{1,2})\.pronouns.+?})\)/, - replace: "$&&Vencord.Plugins.plugins.PronounDB.PronounsProfileWrapper($,$,$)" + replace: "$&&$self.PronounsProfileWrapper($,$,$)" } }, // Make pronouns experiment be enabled by default -- cgit