Update EditUsers.plugin.js

This commit is contained in:
Mirco Wittrien 2023-11-24 12:39:29 +01:00
parent 3772108eb1
commit 3db8c9dd0f
1 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name EditUsers * @name EditUsers
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 4.8.5 * @version 4.8.6
* @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
@ -188,6 +188,9 @@ module.exports = (_ => {
${BDFDB.dotCNS.dmchannel + BDFDB.dotCN.bottag} { ${BDFDB.dotCNS.dmchannel + BDFDB.dotCN.bottag} {
margin-left: 4px; margin-left: 4px;
} }
${BDFDB.dotCNS.voicename + BDFDB.dotCN.bottag} {
display: inline-flex;
}
${BDFDB.dotCNS.peoplesuser + BDFDB.dotCN.peoplesdiscriminator} { ${BDFDB.dotCNS.peoplesuser + BDFDB.dotCN.peoplesdiscriminator} {
display: none; display: none;
} }
@ -682,7 +685,12 @@ module.exports = (_ => {
} }
else { else {
let username = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.voicename]]}); let username = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.voicename]]});
if (username) this.changeUserColor(username, e.instance.props.user.id, {modify: e.instance.props}); if (!username) return;
this.changeUserColor(username, e.instance.props.user.id, {modify: e.instance.props});
username.props.children = [username.props.children].flat(10);
this.injectBadge(username.props.children, e.instance.props.user.id, BDFDB.LibraryStores.SelectedGuildStore.getGuildId(), 1, {
tagClass: BDFDB.disCN.bottagnametag
});
} }
} }