This commit is contained in:
Mirco Wittrien 2022-06-15 20:47:03 +02:00
parent 530f7c30b1
commit 3b9c949010
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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
});