fix the bug in a better way

This commit is contained in:
Amish Shah
2016-09-02 16:57:07 +01:00
parent 7d27667afc
commit 1cbd1bda46
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -180,7 +180,7 @@ class RESTMethods {
}
leaveGuild(guild) {
if (guild.owner && guild.owner.id === this.rest.client.user.id) {
if (guild.ownerID === this.rest.client.user.id) {
return this.deleteGuild(guild);
}
return new Promise((resolve, reject) => {