From 6d7293e3c5c53c279758d66c31e20cc1272ab79f Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Thu, 29 Dec 2016 14:00:54 +0000 Subject: [PATCH] Fix sending an array of messages --- src/structures/interface/TextBasedChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/interface/TextBasedChannel.js b/src/structures/interface/TextBasedChannel.js index 61be68d0c..536131332 100644 --- a/src/structures/interface/TextBasedChannel.js +++ b/src/structures/interface/TextBasedChannel.js @@ -65,7 +65,7 @@ class TextBasedChannel { * .catch(console.error); */ send(content, options) { - if (!options && typeof content === 'object') { + if (!options && typeof content === 'object' && !(content instanceof Array)) { options = content; content = ''; } else if (!options) {