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:
parent
0e70412bc4
commit
ecaa16bf7c
10 changed files with 22 additions and 160 deletions
|
@ -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,
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue