Update EditRoles.plugin.js
This commit is contained in:
parent
5320e0560e
commit
d80e131e53
|
@ -66,6 +66,7 @@ module.exports = (_ => {
|
|||
onLoad () {
|
||||
this.patchedModules = {
|
||||
before: {
|
||||
DeveloperContextMenu: "default",
|
||||
MemberListItem: "render",
|
||||
UserPopout: "render"
|
||||
}
|
||||
|
@ -176,6 +177,10 @@ module.exports = (_ => {
|
|||
].flat(10).filter(n => n);
|
||||
}
|
||||
|
||||
processDeveloperContextMenu (e) {
|
||||
BDFDB.LibraryModules.SettingsUtils.updateLocalSettings({"developerMode": true});
|
||||
}
|
||||
|
||||
processMemberListItem (e) {
|
||||
if (e.instance.props.user) {
|
||||
let member = BDFDB.LibraryModules.MemberStore.getMember(e.instance.props.guildId, e.instance.props.user.id);
|
||||
|
|
Loading…
Reference in New Issue