mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
Fixed some stuff
so much I don't even remember
This commit is contained in:
@@ -32,6 +32,18 @@ class Channel {
|
||||
return this.server.client;
|
||||
}
|
||||
|
||||
permissionsOf(member){
|
||||
|
||||
var mem = this.server.getMember("id", member.id);
|
||||
|
||||
if(mem){
|
||||
return mem.permissionsIn(this);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
equals(object) {
|
||||
return (object && object.id === this.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user