mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 20:20:55 +00:00
fix(Message): do not update editedTimestamp when there is none in the payload
Fixes #2307
This commit is contained in:
parent
de78a8d0b4
commit
3ba26ad972
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ class Message {
|
||||||
const clone = Util.cloneObject(this);
|
const clone = Util.cloneObject(this);
|
||||||
this._edits.unshift(clone);
|
this._edits.unshift(clone);
|
||||||
|
|
||||||
this.editedTimestamp = new Date(data.edited_timestamp).getTime();
|
if ('editedTimestamp' 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