mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
fix the bug in a better way
This commit is contained in:
parent
7d27667afc
commit
1cbd1bda46
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 && 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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue