mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(Message): properly check for an edited_timestamp in patch
Fixes #2750
This commit is contained in:
parent
efc8445260
commit
616e0dd398
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ class Message {
|
|||
const clone = Util.cloneObject(this);
|
||||
this._edits.unshift(clone);
|
||||
|
||||
if ('editedTimestamp' in data) 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue