From 7cbe81e71a7a242bbc0eddc644e8f8bf8834b530 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Tue, 3 Jan 2017 00:59:34 -0600 Subject: [PATCH] fix editing with an array (#1059) * fix editing with an array * fix build * put this back because reasons * i'm having one of those nights --- 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 51b2314f1..cf4c481f0 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -390,7 +390,7 @@ class Message { * .catch(console.error); */ edit(content, options) { - if (!options && typeof content === 'object') { + if (!options && typeof content === 'object' && !(content instanceof Array)) { options = content; content = ''; } else if (!options) {