mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
Fix get channel by name function.
This commit is contained in:
parent
aacbf2cca8
commit
0366b58ca3
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -1017,7 +1017,7 @@ exports.Client.prototype.getChannel = function( id ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Client.prototype.getChannelByName = function( name ) {
|
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 ) {
|
exports.Client.prototype.getUser = function( id ) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue