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
This commit is contained in:
Gus Caplan
2017-01-03 00:59:34 -06:00
committed by Amish Shah
parent 2c26d79f50
commit 7cbe81e71a

View File

@@ -390,7 +390,7 @@ class Message {
* .catch(console.error); * .catch(console.error);
*/ */
edit(content, options) { edit(content, options) {
if (!options && typeof content === 'object') { if (!options && typeof content === 'object' && !(content instanceof Array)) {
options = content; options = content;
content = ''; content = '';
} else if (!options) { } else if (!options) {