mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 13:32:04 +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
|
||||
*/
|
||||
get edits() {
|
||||
return this._edits.slice().unshift(this);
|
||||
const copy = this._edits.slice();
|
||||
copy.unshift(this);
|
||||
return copy;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue