mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 05:00:48 +00:00
fix message.edits (#924)
This commit is contained in:
parent
85a7eab5bb
commit
4ae1f63a97
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue