mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
More bug fixes
This commit is contained in:
@@ -3,7 +3,8 @@ var ChannelPermissions = require("./ChannelPermissions.js");
|
||||
class Channel {
|
||||
|
||||
constructor(data, server) {
|
||||
this.server = server;
|
||||
this.serverID = server.id;
|
||||
this.client = server.client;
|
||||
this.name = data.name;
|
||||
this.type = data.type;
|
||||
this.topic = data.topic;
|
||||
@@ -18,6 +19,10 @@ class Channel {
|
||||
|
||||
//this.isPrivate = isPrivate; //not sure about the implementation of this...
|
||||
}
|
||||
|
||||
get server(){
|
||||
return this.client.getServer("id", this.serverID);
|
||||
}
|
||||
|
||||
get permissionOverwrites() {
|
||||
return this.roles;
|
||||
@@ -27,10 +32,6 @@ class Channel {
|
||||
return this.roles;
|
||||
}
|
||||
|
||||
get client() {
|
||||
return this.server.client;
|
||||
}
|
||||
|
||||
permissionsOf(member){
|
||||
|
||||
var mem = this.server.getMember("id", member.id);
|
||||
|
||||
Reference in New Issue
Block a user