mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
Fix embeds getting converted to collection on edgecase (#1356)
This commit is contained in:
parent
e60d2bd175
commit
9365272baf
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ class Message {
|
|||
if ('pinned' in data) this.pinned = data.pinned;
|
||||
if ('tts' in data) this.tts = data.tts;
|
||||
if ('embeds' in data) this.embeds = data.embeds.map(e => new Embed(this, e));
|
||||
else this.embeds = new Collection(this.embeds);
|
||||
else this.embeds = this.embeds.slice();
|
||||
|
||||
if ('attachments' in data) {
|
||||
this.attachments = new Collection();
|
||||
|
|
|
|||
Loading…
Reference in a new issue