mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Fix weird guild ug
This commit is contained in:
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) => {
|
||||
|
||||
Reference in New Issue
Block a user