From 3b9c949010bea6ff6b1dece5a775bbd4ac9e72fb Mon Sep 17 00:00:00 2001 From: Mirco Wittrien <23700969+mwittrien@users.noreply.github.com> Date: Wed, 15 Jun 2022 20:47:03 +0200 Subject: [PATCH] changes --- Plugins/StaffTag/StaffTag.plugin.js | 6 +++--- Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Plugins/StaffTag/StaffTag.plugin.js b/Plugins/StaffTag/StaffTag.plugin.js index 792fa9ac3f..84ddc38ef4 100644 --- a/Plugins/StaffTag/StaffTag.plugin.js +++ b/Plugins/StaffTag/StaffTag.plugin.js @@ -2,7 +2,7 @@ * @name StaffTag * @author DevilBro * @authorId 278543574059057154 - * @version 1.5.1 + * @version 1.5.2 * @description Adds a Crown/Tag to Server Owners (or Admins/Management) * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,7 +17,7 @@ module.exports = (_ => { "info": { "name": "StaffTag", "author": "DevilBro", - "version": "1.5.1", + "version": "1.5.2", "description": "Adds a Crown/Tag to Server Owners (or Admins/Management)" } }; @@ -249,7 +249,7 @@ module.exports = (_ => { if (index == -1) return; const author = e.instance.props.userOverride || e.instance.props.message.author; let userType = this.getUserType(author, e.instance.props.message.channel_id); - if (userType) this.injectStaffTag(children, author, userType, e.instance.props.compact ? index : (index + 1), { + if (userType) this.injectStaffTag(children, author, userType, e.instance.props.compact ? index : (index + 2), { channelId: e.instance.props.message.channel_id, tagClass: e.instance.props.compact ? BDFDB.disCN.messagebottagcompact : BDFDB.disCN.messagebottagcozy, useRem: true diff --git a/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js b/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js index 71819ce44c..cd6398edb9 100644 --- a/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js +++ b/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js @@ -2,7 +2,7 @@ * @name TopRoleEverywhere * @author DevilBro * @authorId 278543574059057154 - * @version 3.0.8 + * @version 3.0.9 * @description Adds the highest Role of a User as a Tag * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,7 +17,7 @@ module.exports = (_ => { "info": { "name": "TopRoleEverywhere", "author": "DevilBro", - "version": "3.0.8", + "version": "3.0.9", "description": "Adds the highest Role of a User as a Tag" } }; @@ -182,11 +182,11 @@ module.exports = (_ => { let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "Popout"}); if (index == -1) return; const author = e.instance.props.userOverride || e.instance.props.message.author; - if (this.settings.places.chat) this.injectRoleTag(children, author, "chat", e.instance.props.compact ? index : (index + 1), { + if (this.settings.places.chat) this.injectRoleTag(children, author, "chat", e.instance.props.compact ? index : (index + 2), { tagClass: e.instance.props.compact ? BDFDB.disCN.messagebottagcompact : BDFDB.disCN.messagebottagcozy, useRem: true }); - if (this.settings.general.addUserId) this.injectIdTag(e.returnvalue.props.children, author, "chat", (e.instance.props.compact ? index : (index + 1)) + (this.settings.general.userIdFirst ? 0 : 1), { + if (this.settings.general.addUserId) this.injectIdTag(e.returnvalue.props.children, author, "chat", (e.instance.props.compact ? index : (index + 2)) + (this.settings.general.userIdFirst ? 0 : 1), { tagClass: e.instance.props.compact ? BDFDB.disCN.messagebottagcompact : BDFDB.disCN.messagebottagcozy, useRem: true });