mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Added Guild Deletion
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user