Update Message.js
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user