stuff
This commit is contained in:
parent
08fc703fdd
commit
0e97917790
|
@ -2,7 +2,7 @@
|
|||
* @name CreationDate
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.4.5
|
||||
* @version 1.4.6
|
||||
* @description Displays the Creation Date of an Account in the UserPopout and UserModal
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,12 +17,12 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "CreationDate",
|
||||
"author": "DevilBro",
|
||||
"version": "1.4.5",
|
||||
"version": "1.4.6",
|
||||
"description": "Displays the Creation Date of an Account in the UserPopout and UserModal"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"User Profile Modal": ""
|
||||
"User Popout": "Fixing Stuff for the User Popout Update, thanks Discord"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -90,7 +90,7 @@ module.exports = (_ => {
|
|||
|
||||
this.patchedModules = {
|
||||
after: {
|
||||
UserPopoutInfo: "default",
|
||||
UserPopoutInfo: "UserPopoutInfo",
|
||||
UserProfileModalHeader: "default"
|
||||
}
|
||||
};
|
||||
|
@ -164,8 +164,8 @@ module.exports = (_ => {
|
|||
|
||||
processUserPopoutInfo (e) {
|
||||
if (e.instance.props.user && this.settings.places.userPopout) {
|
||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
|
||||
if (index > -1) this.injectDate(children, 2, e.instance.props.user);
|
||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: ["DiscordTag", "ColoredFluxTag"]});
|
||||
if (index > -1) this.injectDate(children, index + 1, e.instance.props.user);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name JoinedAtDate
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.3.1
|
||||
* @version 1.3.2
|
||||
* @description Displays the Joined At Date of a Member in the UserPopout and UserModal
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,12 +17,12 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "JoinedAtDate",
|
||||
"author": "DevilBro",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.2",
|
||||
"description": "Displays the Joined At Date of a Member in the UserPopout and UserModal"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"User Profile Modal": ""
|
||||
"User Popout": "Fixing Stuff for the User Popout Update, thanks Discord"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -96,9 +96,8 @@ module.exports = (_ => {
|
|||
|
||||
this.patchedModules = {
|
||||
after: {
|
||||
UserPopout: "render",
|
||||
UserPopoutInfo: "default",
|
||||
UserProfileModal: "default",
|
||||
AnalyticsContext: "render",
|
||||
UserPopoutInfo: "UserPopoutInfo",
|
||||
UserProfileModalHeader: "default"
|
||||
}
|
||||
};
|
||||
|
@ -169,20 +168,17 @@ module.exports = (_ => {
|
|||
}
|
||||
}
|
||||
|
||||
processUserPopout (e) {
|
||||
currentPopout = e.instance;
|
||||
processAnalyticsContext (e) {
|
||||
if (e.instance.props.section == BDFDB.DiscordConstants.AnalyticsSections.PROFILE_MODAL) currentProfile = e.instance;
|
||||
if (e.instance.props.section == BDFDB.DiscordConstants.AnalyticsSections.PROFILE_POPOUT) currentPopout = e.instance;
|
||||
}
|
||||
|
||||
processUserPopoutInfo (e) {
|
||||
if (currentPopout && e.instance.props.user && this.settings.places.userPopout) {
|
||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
|
||||
if (index > -1) this.injectDate(currentPopout, children, 2, e.instance.props.user, e.instance.props.guildId);
|
||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: ["DiscordTag", "ColoredFluxTag"]});
|
||||
if (index > -1) this.injectDate(currentPopout, children, index + 1, e.instance.props.user, e.instance.props.guildId);
|
||||
}
|
||||
}
|
||||
|
||||
processUserProfileModal (e) {
|
||||
currentProfile = e.instance;
|
||||
}
|
||||
|
||||
processUserProfileModalHeader (e) {
|
||||
if (currentProfile && e.instance.props.user && this.settings.places.userProfile) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name LastMessageDate
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.2.6
|
||||
* @version 1.2.7
|
||||
* @description Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,12 +17,12 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "LastMessageDate",
|
||||
"author": "DevilBro",
|
||||
"version": "1.2.6",
|
||||
"version": "1.2.7",
|
||||
"description": "Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"User Profile Modal": ""
|
||||
"User Popout": "Fixing Stuff for the User Popout Update, thanks Discord"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -96,9 +96,8 @@ module.exports = (_ => {
|
|||
|
||||
this.patchedModules = {
|
||||
after: {
|
||||
UserPopout: "render",
|
||||
UserPopoutInfo: "default",
|
||||
UserProfileModal: "default",
|
||||
AnalyticsContext: "render",
|
||||
UserPopoutInfo: "UserPopoutInfo",
|
||||
UserProfileModalHeader: "default"
|
||||
}
|
||||
};
|
||||
|
@ -179,21 +178,18 @@ module.exports = (_ => {
|
|||
}
|
||||
}
|
||||
|
||||
processUserPopout (e) {
|
||||
currentPopout = e.instance;
|
||||
processAnalyticsContext (e) {
|
||||
if (e.instance.props.section == BDFDB.DiscordConstants.AnalyticsSections.PROFILE_MODAL) currentProfile = e.instance;
|
||||
if (e.instance.props.section == BDFDB.DiscordConstants.AnalyticsSections.PROFILE_POPOUT) currentPopout = e.instance;
|
||||
}
|
||||
|
||||
processUserPopoutInfo (e) {
|
||||
if (currentPopout && e.instance.props.user && this.settings.places.userPopout) {
|
||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
|
||||
if (index > -1) this.injectDate(currentPopout, children, 2, e.instance.props.user, e.instance.props.guildId);
|
||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: ["DiscordTag", "ColoredFluxTag"]});
|
||||
if (index > -1) this.injectDate(currentPopout, children, index + 1, e.instance.props.user, e.instance.props.guildId);
|
||||
}
|
||||
}
|
||||
|
||||
processUserProfileModal (e) {
|
||||
currentProfile = e.instance;
|
||||
}
|
||||
|
||||
processUserProfileModalHeader (e) {
|
||||
if (currentProfile && e.instance.props.user && this.settings.places.userProfile) {
|
||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: ["DiscordTag", "ColoredFluxTag"]});
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name StaffTag
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.4.5
|
||||
* @version 1.4.6
|
||||
* @description Adds a Crown/Tag to Server Owners (or Admins/Management)
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,12 +17,12 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "StaffTag",
|
||||
"author": "DevilBro",
|
||||
"version": "1.4.5",
|
||||
"version": "1.4.6",
|
||||
"description": "Adds a Crown/Tag to Server Owners (or Admins/Management)"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"Commands": "No longer use the crown of the bot instead of the user"
|
||||
"User Popout": "Fixing Stuff for the User Popout Update, thanks Discord"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -88,7 +88,7 @@ module.exports = (_ => {
|
|||
MessageUsername: "default",
|
||||
VoiceUser: "render",
|
||||
NameTag: "default",
|
||||
UserPopoutInfo: "default"
|
||||
UserPopoutInfo: "UserPopoutInfo"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue