mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 16:22:08 +00: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:
parent
a61cfc3004
commit
9e0705cbc3
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ class Message extends Base {
|
||||||
const clone = this._clone();
|
const clone = this._clone();
|
||||||
this._edits.unshift(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 ('content' in data) this.content = data.content;
|
||||||
if ('pinned' in data) this.pinned = data.pinned;
|
if ('pinned' in data) this.pinned = data.pinned;
|
||||||
if ('tts' in data) this.tts = data.tts;
|
if ('tts' in data) this.tts = data.tts;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue