mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Message): check for edited_timestamp in data when patching message (#3535)
* check for data.edited_timestamp * actually i should do it like this for consistency * indentation
This commit is contained in:
@@ -219,7 +219,7 @@ class Message extends Base {
|
||||
const clone = this._clone();
|
||||
this._edits.unshift(clone);
|
||||
|
||||
this.editedTimestamp = new Date(data.edited_timestamp).getTime();
|
||||
if ('edited_timestamp' in data) this.editedTimestamp = new Date(data.edited_timestamp).getTime();
|
||||
if ('content' in data) this.content = data.content;
|
||||
if ('pinned' in data) this.pinned = data.pinned;
|
||||
if ('tts' in data) this.tts = data.tts;
|
||||
|
||||
Reference in New Issue
Block a user