Update EditUsers.plugin.js
This commit is contained in:
parent
606eb9f56d
commit
95827cc8ff
|
@ -2,7 +2,7 @@
|
|||
* @name EditUsers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 4.9.0
|
||||
* @version 4.9.1
|
||||
* @description Allows you to locally edit Users
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -131,6 +131,8 @@ module.exports = (_ => {
|
|||
"UserHeaderAvatar",
|
||||
"UserHeaderUsername",
|
||||
"UserInfo",
|
||||
"UserPanelHeader",
|
||||
"UserProfileHeader",
|
||||
"UserSummaryItem",
|
||||
"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) {
|
||||
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];
|
||||
|
|
Loading…
Reference in New Issue