3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

feat: use native timestamps more

This commit is contained in:
Dragory 2023-06-24 11:55:49 +00:00
parent 0e70412bc4
commit ecaa16bf7c
10 changed files with 22 additions and 160 deletions

View file

@ -26,6 +26,7 @@ export function logMemberJoin(pluginData: GuildPluginData<LogsPluginType>, data:
member: memberToTemplateSafeMember(data.member),
new: data.member.user.createdTimestamp >= newThreshold ? " :new:" : "",
account_age: accountAge,
account_age_ts: Math.round(data.member.user.createdTimestamp / 1000).toString(),
}),
{
userId: data.member.id,