From 3db8c9dd0f6878850f7a90898939b8c96e64ff9e Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 24 Nov 2023 12:39:29 +0100 Subject: [PATCH] Update EditUsers.plugin.js --- Plugins/EditUsers/EditUsers.plugin.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 732491d72c..6f036123af 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -2,7 +2,7 @@ * @name EditUsers * @author DevilBro * @authorId 278543574059057154 - * @version 4.8.5 + * @version 4.8.6 * @description Allows you to locally edit Users * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -188,6 +188,9 @@ module.exports = (_ => { ${BDFDB.dotCNS.dmchannel + BDFDB.dotCN.bottag} { margin-left: 4px; } + ${BDFDB.dotCNS.voicename + BDFDB.dotCN.bottag} { + display: inline-flex; + } ${BDFDB.dotCNS.peoplesuser + BDFDB.dotCN.peoplesdiscriminator} { display: none; } @@ -682,7 +685,12 @@ module.exports = (_ => { } else { 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 + }); } }