mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Fix weird guild ug
This commit is contained in:
parent
ae17a89191
commit
7d27667afc
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue