From 0366b58ca322f86a78f027439e44270ac8849835 Mon Sep 17 00:00:00 2001 From: Aigachu Date: Thu, 20 Aug 2015 19:54:40 -0400 Subject: [PATCH] Fix get channel by name function. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 35c00b2f6..ff288fd00 100644 --- a/index.js +++ b/index.js @@ -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 ) {