From 9365272baf6d030dd1205176274b380b8f70db5f Mon Sep 17 00:00:00 2001 From: bdistin Date: Mon, 10 Apr 2017 13:30:06 -0500 Subject: [PATCH] Fix embeds getting converted to collection on edgecase (#1356) --- src/structures/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 5f191c26d..9612957c0 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -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();