Move ShowHiddenThings fix
This commit is contained in:
parent
aa64267ddb
commit
bb6d2f3d82
2 changed files with 9 additions and 10 deletions
|
@ -55,6 +55,14 @@ export default definePlugin({
|
||||||
match: /\i\.id===\i\.id\?null:/,
|
match: /\i\.id===\i\.id\?null:/,
|
||||||
replace: ""
|
replace: ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// Fixes mod view depending on Members page being loaded to acquire the member highest role
|
||||||
|
{
|
||||||
|
find: "#{intl::GUILD_MEMBER_MOD_VIEW_PERMISSION_GRANTED_BY_ARIA_LABEL}),allowOverflow:",
|
||||||
|
replacement: {
|
||||||
|
match: /(role:)\i(?=,guildId.{0,100}role:(\i\[))/,
|
||||||
|
replace: "$1$2arguments[0].member.highestRoleId]"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -65,16 +65,7 @@ export default definePlugin({
|
||||||
replace: "return true",
|
replace: "return true",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// fixes a bug where Members page must be loaded to see highest role, why is Discord depending on MemberSafetyStore.getEnhancedMember for something that can be obtained here?
|
// Allows you to open mod view on yourself
|
||||||
{
|
|
||||||
find: "#{intl::GUILD_MEMBER_MOD_VIEW_PERMISSION_GRANTED_BY_ARIA_LABEL}),allowOverflow:",
|
|
||||||
predicate: () => settings.store.showModView,
|
|
||||||
replacement: {
|
|
||||||
match: /(role:)\i(?=,guildId.{0,100}role:(\i\[))/,
|
|
||||||
replace: "$1$2arguments[0].member.highestRoleId]",
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// allows you to open mod view on yourself
|
|
||||||
{
|
{
|
||||||
find: 'action:"PRESS_MOD_VIEW",icon:',
|
find: 'action:"PRESS_MOD_VIEW",icon:',
|
||||||
predicate: () => settings.store.showModView,
|
predicate: () => settings.store.showModView,
|
||||||
|
|
Loading…
Add table
Reference in a new issue