Update CompleteTimestamps.plugin.js

This commit is contained in:
Mirco Wittrien 2023-01-17 12:34:38 +01:00
parent 839360b971
commit 861e7fa63b
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name CompleteTimestamps * @name CompleteTimestamps
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 1.6.5 * @version 1.6.6
* @description Replaces Timestamps with your own custom Timestamps * @description Replaces Timestamps with your own custom Timestamps
* @invite Jx3TjNS * @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien * @donate https://www.paypal.me/MircoWittrien
@ -222,7 +222,7 @@ module.exports = (_ => {
processUserMemberSince (e) { processUserMemberSince (e) {
let bodys = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutsectionbody]], all: true}); 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, { if (bodys[0]) bodys[0].props.children = BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: this.formatTimestamp(this.settings.dates.tooltipDate, e.instance.props.userId), text: this.formatTimestamp(this.settings.dates.tooltipDate, BDFDB.LibraryModules.TimestampUtils.extractTimestamp(e.instance.props.userId)),
children: BDFDB.ReactUtils.createElement("span", {children: bodys[0].props.children}) 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, { if (e.instance.props.guildMember && e.instance.props.guildMember.joinedAt && bodys[1]) bodys[1].props.children = BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {