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