sendMessage now also takes a Message instead of a Channel if wanted

To help reduce verbosity
This commit is contained in:
hydrabolt
2015-08-13 23:17:20 +01:00
parent 04872a4397
commit e1ada38234

View File

@@ -383,6 +383,10 @@ exports.Client.prototype.sendMessage = function( channel, message, cb, _mentions
}
}
if( channel instanceof Message ){
channel = channel.channel;
}
var cb = cb || function() {};
if ( _mentions === false ) {