changes
This commit is contained in:
parent
530f7c30b1
commit
3b9c949010
|
@ -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
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue