Fix for bulkDelete, acknowledge, createInvite and remove some redundant stuff (#1515)

This commit is contained in:
SpaceEEC
2017-05-21 22:04:57 +02:00
committed by Crawl
parent a0df2c5fa4
commit fce15ba33c
4 changed files with 6 additions and 6 deletions

View File

@@ -975,7 +975,7 @@ class Guild {
*/
leave() {
if (this.ownerID === this.client.user.id) return Promise.reject(new Error('Guild is owned by the client.'));
return this.rest.api.users('@me').guilds(this.id).delete()
return this.client.api.users('@me').guilds(this.id).delete()
.then(() => this.client.actions.GuildDelete.handle({ id: this.id }).guild);
}