3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-13 13:25:03 +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,

View file

@ -150,6 +150,7 @@ export const LogTypeData = z.object({
member: z.instanceof(TemplateSafeMember),
new: z.string(),
account_age: z.string(),
account_age_ts: z.string(),
}),
[LogType.MEMBER_LEAVE]: z.object({