Update Message.js

This commit is contained in:
Elysia
2025-02-14 23:00:49 +07:00
parent 9ae420e0de
commit 725d19143b

View File

@@ -203,7 +203,7 @@ class Message extends Base {
* The timestamp the message was last edited at (if applicable) * The timestamp the message was last edited at (if applicable)
* @type {?number} * @type {?number}
*/ */
this.editedTimestamp = new Date(data.edited_timestamp).getTime(); this.editedTimestamp = data.edited_timestamp ? Date.parse(data.edited_timestamp) : null;
} else { } else {
this.editedTimestamp ??= null; this.editedTimestamp ??= null;
} }