mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
Fix get channel by name function.
This commit is contained in:
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 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user