More bug fixes

This commit is contained in:
hydrabolt
2015-10-29 14:14:33 +00:00
parent bb1655330a
commit 1af1d71643
7 changed files with 93 additions and 39 deletions

View File

@@ -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);