Update EditUsers.plugin.js
This commit is contained in:
parent
606eb9f56d
commit
95827cc8ff
|
@ -2,7 +2,7 @@
|
||||||
* @name EditUsers
|
* @name EditUsers
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 4.9.0
|
* @version 4.9.1
|
||||||
* @description Allows you to locally edit Users
|
* @description Allows you to locally edit Users
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -131,6 +131,8 @@ module.exports = (_ => {
|
||||||
"UserHeaderAvatar",
|
"UserHeaderAvatar",
|
||||||
"UserHeaderUsername",
|
"UserHeaderUsername",
|
||||||
"UserInfo",
|
"UserInfo",
|
||||||
|
"UserPanelHeader",
|
||||||
|
"UserProfileHeader",
|
||||||
"UserSummaryItem",
|
"UserSummaryItem",
|
||||||
"VoiceUser"
|
"VoiceUser"
|
||||||
],
|
],
|
||||||
|
@ -583,6 +585,16 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
processUserPanelHeader (e) {
|
||||||
|
if (!e.instance.props.user || !changedUsers[e.instance.props.user.id] || !this.settings.places.userProfile) return;
|
||||||
|
e.instance.props.user = this.getUserData(e.instance.props.user.id, true, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
processUserProfileHeader (e) {
|
||||||
|
if (!e.instance.props.user || !changedUsers[e.instance.props.user.id] || !this.settings.places.userProfile) return;
|
||||||
|
e.instance.props.user = this.getUserData(e.instance.props.user.id, true, true);
|
||||||
|
}
|
||||||
|
|
||||||
processUserHeaderUsername (e) {
|
processUserHeaderUsername (e) {
|
||||||
if (!e.instance.props.user || e.instance.props.profileType == BDFDB.DiscordConstants.ProfileTypes.BITE_SIZE && !this.settings.places.userPopout || e.instance.props.profileType == BDFDB.DiscordConstants.ProfileTypes.FULL_SIZE && !this.settings.places.userProfile) return;
|
if (!e.instance.props.user || e.instance.props.profileType == BDFDB.DiscordConstants.ProfileTypes.BITE_SIZE && !this.settings.places.userPopout || e.instance.props.profileType == BDFDB.DiscordConstants.ProfileTypes.FULL_SIZE && !this.settings.places.userProfile) return;
|
||||||
let data = changedUsers[e.instance.props.user.id];
|
let data = changedUsers[e.instance.props.user.id];
|
||||||
|
|
Loading…
Reference in New Issue