From 021cb49987faca8b5b572f8f5f0a22ea69972ea5 Mon Sep 17 00:00:00 2001 From: Julian Date: Fri, 28 Oct 2022 13:02:47 +0200 Subject: [PATCH] fix timestamps in join log --- package.json | 2 +- src/events/discord/GuildMemberRemoveEventListener.js | 2 +- src/events/discord/guildMemberAdd/LogJoinEventListener.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 281ad3545..539cc78f6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/events/discord/GuildMemberRemoveEventListener.js b/src/events/discord/GuildMemberRemoveEventListener.js index b80e74041..48b6aa4e1 100644 --- a/src/events/discord/GuildMemberRemoveEventListener.js +++ b/src/events/discord/GuildMemberRemoveEventListener.js @@ -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)}`; diff --git a/src/events/discord/guildMemberAdd/LogJoinEventListener.js b/src/events/discord/guildMemberAdd/LogJoinEventListener.js index 829af01fd..a426c8533 100644 --- a/src/events/discord/guildMemberAdd/LogJoinEventListener.js +++ b/src/events/discord/guildMemberAdd/LogJoinEventListener.js @@ -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}`});