fixed rendering of time

pull/33/head
TheCodedProf 3 years ago
parent e915a385fb
commit c42df7176b

@ -1,2 +1,3 @@
Server rules
verificationRequired on welcome
Remove channels from autopublish when they're deleted

@ -44,10 +44,12 @@ export const Logger = {
return `${user.username} [<@${user.id}>]`;
},
renderTime(t: number) {
if(isNaN(t)) return "Unknown"
t = Math.floor((t /= 1000));
return `<t:${t}:D> at <t:${t}:T>`;
},
renderDelta(t: number) {
if(isNaN(t)) return "Unknown"
t = Math.floor((t /= 1000));
return `<t:${t}:R> (<t:${t}:D> at <t:${t}:T>)`;
},

Loading…
Cancel
Save