utilities.linvite: actually call getTime

This commit is contained in:
Cynthia Foxwell 2023-04-09 11:23:41 -06:00
parent de999f1858
commit 86a7e197a8

View file

@ -338,7 +338,9 @@ lookupinvite.callback = async function (msg, line) {
value: value:
invite.expires_at == null invite.expires_at == null
? "Never" ? "Never"
: `<t:${Math.floor(new Date(invite.expires_at).getTime / 1000)}>`, : `<t:${Math.floor(
new Date(invite.expires_at).getTime() / 1000
)}>`,
inline: true, inline: true,
}, },
{ {