Fix weird guild ug

This commit is contained in:
Amish Shah
2016-09-02 16:56:06 +01:00
parent ae17a89191
commit 7d27667afc
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.id === this.rest.client.user.id) {
if (guild.owner && guild.owner.id === this.rest.client.user.id) {
return this.deleteGuild(guild);
}
return new Promise((resolve, reject) => {