Fix embeds getting converted to collection on edgecase (#1356)

This commit is contained in:
bdistin
2017-04-10 13:30:06 -05:00
committed by Schuyler Cebulskie
parent e60d2bd175
commit 9365272baf

View File

@@ -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();