Skip to content

Commit

Permalink
Merge pull request #521 from aternosorg/joinlog
Browse files Browse the repository at this point in the history
fix timestamps in join log
  • Loading branch information
JulianVennen authored Oct 28, 2022
2 parents dfd7f21 + 021cb49 commit 3ff9dff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modbot",
"version": "3.0.7",
"version": "3.0.8",
"description": "Discord Bot for the Aternos Discord server",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/events/discord/GuildMemberRemoveEventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class GuildMemberRemoveEventListener extends EventListener {
*/
async execute(member) {
let description = `${bold('ID:')} ${member.id}\n` +
`${bold('Created Account:')} ${time(member.user.createdTimestamp, TimestampStyles.RelativeTime)}\n`;
`${bold('Created Account:')} ${time(member.user.createdAt, TimestampStyles.RelativeTime)}\n`;

if (member.joinedTimestamp) {
description += `${bold('Joined:')} ${time(member.joinedTimestamp, TimestampStyles.RelativeTime)}`;
Expand Down
2 changes: 1 addition & 1 deletion src/events/discord/guildMemberAdd/LogJoinEventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class LogJoinEventListener extends GuildMemberAddEventListener {
.setThumbnail(member.user.avatarURL())
.setDescription(
`${bold('ID:')} ${member.id}\n` +
`${bold('Created Account:')} ${time(member.user.createdTimestamp, TimestampStyles.RelativeTime)}`
`${bold('Created Account:')} ${time(member.user.createdAt, TimestampStyles.RelativeTime)}`
)
.setTimestamp()
.setFooter({text: `Members: ${member.guild.memberCount}`});
Expand Down

0 comments on commit 3ff9dff

Please sign in to comment.