mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01: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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user