mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
Fix sending an array of messages
This commit is contained in:
@@ -65,7 +65,7 @@ class TextBasedChannel {
|
|||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
send(content, options) {
|
send(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