mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
Fix sending an array of messages
This commit is contained in:
parent
95790dcf08
commit
6d7293e3c5
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class TextBasedChannel {
|
|||
* .catch(console.error);
|
||||
*/
|
||||
send(content, options) {
|
||||
if (!options && typeof content === 'object') {
|
||||
if (!options && typeof content === 'object' && !(content instanceof Array)) {
|
||||
options = content;
|
||||
content = '';
|
||||
} else if (!options) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue