mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 21:04:49 +12:00
small fix
This commit is contained in:
parent
76cf78c5a1
commit
725f504bf9
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -397,6 +397,10 @@ exports.Client.prototype.sendMessage = function( channel, message, cb, _mentions
|
|||
|
||||
options = options || {};
|
||||
|
||||
if(message instanceof Array){
|
||||
message = message.join("\n");
|
||||
}
|
||||
|
||||
var thisLoopId = Math.floor( Math.random() * 1000 );
|
||||
|
||||
if ( channel instanceof User ) {
|
||||
|
|
Loading…
Reference in a new issue