mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 13:10:42 +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);
|
* .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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue