Added leave server and other stuff

This commit is contained in:
hydrabolt
2015-11-01 13:34:59 +00:00
parent 0fe42c61da
commit 1efc2eb505
14 changed files with 145 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ var PermissionOverwrite = require("./PermissionOverwrite.js");
var ServerChannel = (function (_Channel) {
_inherits(ServerChannel, _Channel);
function ServerChannel(data, client) {
function ServerChannel(data, client, server) {
var _this = this;
_classCallCheck(this, ServerChannel);
@@ -20,6 +20,7 @@ var ServerChannel = (function (_Channel) {
this.name = data.name;
this.type = data.type;
this.permissionOverwrites = new Cache();
this.server = server;
data.permission_overwrites.forEach(function (permission) {
_this.permissionOverwrites.add(new PermissionOverwrite(permission));
});