make backref lazy
This commit is contained in:
parent
50c89376bc
commit
08cc3507fa
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ export default definePlugin({
|
|||
find: "#{intl::GUILD_MEMBER_MOD_VIEW_HIGHEST_ROLE}),children:",
|
||||
predicate: () => settings.store.showModView,
|
||||
replacement: {
|
||||
match: /(#{intl::GUILD_MEMBER_MOD_VIEW_HIGHEST_ROLE}.{0,80})role:\i(?<=\[\i\.roles,\i\.highestRoleId,(\i)\].+)/,
|
||||
match: /(#{intl::GUILD_MEMBER_MOD_VIEW_HIGHEST_ROLE}.{0,80})role:\i(?<=\[\i\.roles,\i\.highestRoleId,(\i)\].+?)/,
|
||||
replace: (_, rest, roles) => `${rest}role:$self.getHighestRole(arguments[0],${roles})`,
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue