Added Guild Deletion

This commit is contained in:
hydrabolt
2016-05-01 14:51:46 +01:00
parent 3a0426482e
commit f95c588d87
12 changed files with 129 additions and 26 deletions

View File

@@ -135,6 +135,14 @@ class Guild {
return this.client.rest.methods.CreateChannel(this, name, type);
}
leave() {
return this.client.rest.methods.LeaveGuild(this);
}
delete() {
return this.client.rest.methods.DeleteGuild(this);
}
get channels() { return this.store.getAsArray('channels'); }
get $channels() { return this.store.data.channels; }