Revert "Update CompleteTimestamps.plugin.js"

This reverts commit 56bb18d577.
This commit is contained in:
Mirco Wittrien 2023-01-16 18:26:50 +01:00
parent 56bb18d577
commit 5da7953e1b
1 changed files with 2 additions and 15 deletions

View File

@ -2,7 +2,7 @@
* @name CompleteTimestamps
* @author DevilBro
* @authorId 278543574059057154
* @version 1.6.5
* @version 1.6.4
* @description Replaces Timestamps with your own custom Timestamps
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -83,8 +83,7 @@ module.exports = (_ => {
after: [
"AuditLogEntry",
"Embed",
"MessageTimestamp",
"UserMemberSince"
"MessageTimestamp"
]
};
@ -210,18 +209,6 @@ module.exports = (_ => {
}
}
}
processUserMemberSince (e) {
let bodys = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutsectionbody]], all: true});
if (bodys[0]) bodys[0].props.children = BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: this.formatTimestamp(this.settings.dates.tooltipDate, e.instance.props.userId),
children: BDFDB.ReactUtils.createElement("span", {children: bodys[0].props.children})
});
if (e.instance.props.guildMember && e.instance.props.guildMember.joinedAt && bodys[1]) bodys[1].props.children = BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: this.formatTimestamp(this.settings.dates.tooltipDate, e.instance.props.guildMember.joinedAt),
children: BDFDB.ReactUtils.createElement("span", {children: bodys[1].props.children})
});
}
processEmbed (e) {
if (!this.settings.places.embed || !e.instance.props.embed || !e.instance.props.embed.timestamp) return;