Fix get channel by name function.

This commit is contained in:
Aigachu
2015-08-20 19:54:40 -04:00
parent aacbf2cca8
commit 0366b58ca3

View File

@@ -1017,7 +1017,7 @@ exports.Client.prototype.getChannel = function( id ) {
}
exports.Client.prototype.getChannelByName = function( name ) {
var normalChan = this.getChannels().filter( "name", name, true );
return this.getChannels().filter( "name", name, true );
}
exports.Client.prototype.getUser = function( id ) {