fix(Messages): undeleting themselves (#2570)

when a _patch() is queued
This commit is contained in:
bdistin
2018-06-16 14:16:57 -05:00
committed by SpaceEEC
parent e8ab049a67
commit 037e8cf969

View File

@@ -26,6 +26,12 @@ class Message extends Base {
*/
this.channel = channel;
/**
* Whether this message has been deleted
* @type {boolean}
*/
this.deleted = false;
if (data) this._patch(data);
}
@@ -157,12 +163,6 @@ class Message extends Base {
* @private
*/
this._edits = [];
/**
* Whether this message has been deleted
* @type {boolean}
*/
this.deleted = false;
}
/**