This commit is contained in:
Mirco Wittrien 2023-04-28 13:04:00 +02:00
parent 11c08a1a86
commit b88d342241
2 changed files with 9 additions and 3 deletions

View File

@ -569,7 +569,7 @@
"UseCopyIdItem": {"strings": ["\"devmode-copy-id"]},
"UserBadges": {"strings": [".PROFILE_USER_BADGES", "SIZE_24"]},
"UserBanner": {"strings": [".showPremiumBadgeUpsell", ".isPremiumAtLeast", ".SETTINGS"]},
"UserBannerMask": {"strings": [".overrideAvatarDecorationURL", "hasBannerImage:", "foreignObject"]},
"UserBannerMask": {"strings": [".overrideAvatarDecorationURL", "getAvatarSpecs", "foreignObject"]},
"UserBioSection": {"strings": [".isUsingGuildBio", "aboutMeGuildIcon", "GUILD_IDENTITY_BIO_TOAST"]},
"UserConnectionsSection": {"strings": [".applicationRoleConnections)", ".CONNECTIONS_ROLE_POPOUT_VIEW_ALL"]},
"UserGenericContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".USER_GENERIC_MENU"]},

View File

@ -2,7 +2,7 @@
* @name EditUsers
* @author DevilBro
* @authorId 278543574059057154
* @version 4.7.8
* @version 4.7.9
* @description Allows you to locally edit Users
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -540,7 +540,11 @@ module.exports = (_ => {
}
else if (changedUsers[e.instance.props.user.id].banner) {
e.instance.props.bannerSrc = changedUsers[e.instance.props.user.id].banner;
if (e.instance.props.displayProfile) e.instance.props.displayProfile.banner = changedUsers[e.instance.props.user.id].banner;
if (e.instance.props.displayProfile) {
e.instance.props.displayProfile = BDFDB.ObjectUtils.copy(e.instance.props.displayProfile);
e.instance.props.displayProfile.banner = changedUsers[e.instance.props.user.id].banner;
e.instance.props.displayProfile.premiumType = 2;
}
}
}
@ -560,7 +564,9 @@ module.exports = (_ => {
}
else if (changedUsers[e.instance.props.user.id].banner) {
e.instance.props.hasBanner = true;
e.instance.props.displayProfile = BDFDB.ObjectUtils.copy(e.instance.props.displayProfile);
e.instance.props.displayProfile.banner = changedUsers[e.instance.props.user.id].banner;
e.instance.props.displayProfile.premiumType = 2;
}
}
}