This commit is contained in:
Christopher Cookman 2024-04-15 01:12:33 -06:00
parent 817bc1ead7
commit 158156a866
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 ${Math.floor(new Date(invite.expiresAt)/1000)}\nCreated at: ${Math.floor(new Date(invite.createdAt)/1000)}`
value: `Code: ${invite.code}\nMax Uses: ${invite.maxUses}\nExpires <t:${Math.floor(new Date(invite.expiresAt)/1000)}:R>\nCreated at: <t:${Math.floor(new Date(invite.createdAt)/1000)}>`
},
{
name: "Guild",