mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
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:
parent
2c26d79f50
commit
7cbe81e71a
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue