mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Client now reworks with PM
This commit is contained in:
3
index.js
3
index.js
@@ -969,7 +969,8 @@ exports.Client.prototype.getServer = function( id ) {
|
||||
}
|
||||
|
||||
exports.Client.prototype.getChannel = function( id ) {
|
||||
return this.getChannels().filter( "id", id, true );
|
||||
var normalChan = this.getChannels().filter( "id", id, true );
|
||||
return normalChan || this.PMList.filter("id", id, true);
|
||||
}
|
||||
|
||||
exports.Client.prototype.getUser = function( id ) {
|
||||
|
||||
Reference in New Issue
Block a user