Fix timestamps again

This commit is contained in:
Christopher Cookman 2024-04-15 01:11:37 -06:00
parent 02b158e52d
commit 817bc1ead7
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -367,7 +367,7 @@ client.on('inviteCreate', (invite) => { //if someone creates an invite while bot
name: "Invite",
// inline check, if expiry is in over 100 years, then it's never, otherwise it's the date
// ${invite.expiresTimestamp > 95617584000 ? "Never" : `<t:${invite.expiresTimestamp}>`
value: `Code: ${invite.code}\nMax Uses: ${invite.maxUses}\nExpires ${invite.expiresAt}\nCreated at: ${invite.createdAt}`
value: `Code: ${invite.code}\nMax Uses: ${invite.maxUses}\nExpires ${Math.floor(new Date(invite.expiresAt)/1000)}\nCreated at: ${Math.floor(new Date(invite.createdAt)/1000)}`
},
{
name: "Guild",