mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Fix embeds getting converted to collection on edgecase (#1356)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
e60d2bd175
commit
9365272baf
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user