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

@@ -41,10 +41,10 @@ class Server extends Equality {
data.channels.forEach( (dataChannel) => {
if(dataChannel.type === "text"){
var channel = client.internal.channels.add(new TextChannel(dataChannel, client));
var channel = client.internal.channels.add(new TextChannel(dataChannel, client, this));
this.channels.add(channel);
}else{
var channel = client.internal.channels.add(new VoiceChannel(dataChannel, client));
var channel = client.internal.channels.add(new VoiceChannel(dataChannel, client, this));
this.channels.add(channel);
}
} );