fixed rendering of time
diff --git a/TODO b/TODO
index 91d025a..029b289 100644
--- a/TODO
+++ b/TODO
@@ -1,2 +1,3 @@
Server rules
verificationRequired on welcome
+Remove channels from autopublish when they're deleted
\ No newline at end of file
diff --git a/src/utils/log.ts b/src/utils/log.ts
index bc95dd8..f1c03ef 100644
--- a/src/utils/log.ts
+++ b/src/utils/log.ts
@@ -44,10 +44,12 @@
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>)`;
},