fix message.edits (#924)

This commit is contained in:
Will Nelson
2016-11-26 13:59:18 -08:00
committed by Amish Shah
parent 85a7eab5bb
commit 4ae1f63a97

View File

@@ -296,7 +296,9 @@ class Message {
* @readonly * @readonly
*/ */
get edits() { get edits() {
return this._edits.slice().unshift(this); const copy = this._edits.slice();
copy.unshift(this);
return copy;
} }
/** /**