mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-14 09:03:03 -04:00
more plugin fixes
This commit is contained in:
parent
1176896a1b
commit
2133823bd3
5 changed files with 47 additions and 5 deletions
|
@ -46,11 +46,12 @@ export default definePlugin({
|
|||
{
|
||||
find: "currentPronouns:",
|
||||
all: true,
|
||||
noWarn: true,
|
||||
replacement: {
|
||||
match: /\(0,.{1,3}\.jsxs?\)\((.{1,10}),(\{[^[}]*currentPronouns:[^}]*(\w)\.pronouns[^}]*\})\)/,
|
||||
replace: (original, PronounComponent, pronounProps, fullProps) => {
|
||||
// UserSettings
|
||||
if (fullProps.includes("onPronounsChange")) return original;
|
||||
if (pronounProps.includes("onPronounsChange")) return original;
|
||||
|
||||
return `Vencord.Plugins.plugins.PronounDB.PronounsProfileWrapper(${PronounComponent}, ${pronounProps}, ${fullProps})`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue