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

@@ -10,7 +10,8 @@ var Channel = (function () {
function Channel(data, server) {
_classCallCheck(this, Channel);
this.server = server;
this.serverID = server.id;
this.client = server.client;
this.name = data.name;
this.type = data.type;
this.topic = data.topic;
@@ -93,6 +94,11 @@ var Channel = (function () {
};
_createClass(Channel, [{
key: "server",
get: function get() {
return this.client.getServer("id", this.serverID);
}
}, {
key: "permissionOverwrites",
get: function get() {
return this.roles;
@@ -102,11 +108,6 @@ var Channel = (function () {
get: function get() {
return this.roles;
}
}, {
key: "client",
get: function get() {
return this.server.client;
}
}, {
key: "isPrivate",
get: function get() {