Skip to content

Commit

Permalink
Made editedTimestamp also return a number probably (#46)
Browse files Browse the repository at this point in the history
* Made editedTimestamp also return a number probably

* Update Message.js
  • Loading branch information
hsiW authored and abalabahaha committed Aug 2, 2016
1 parent 1b32554 commit 0b3c896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Message {
}

this.pinned = data.pinned !== undefined ? !!data.pinned : this.pinned;
this.editedTimestamp = data.edited_timestamp !== undefined ? data.edited_timestamp : this.editedTimestamp;
this.editedTimestamp = data.edited_timestamp !== undefined ? Date.parse(data.edited_timestamp) : this.editedTimestamp;
this.tts = data.tts !== undefined ? data.tts : this.tts;
this.attachments = data.attachments !== undefined ? data.attachments : this.attachments; // TODO parse attachments
this.embeds = data.embeds !== undefined ? data.embeds : this.embeds; // TODO parse embeds
Expand Down

0 comments on commit 0b3c896

Please sign in to comment.