mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Try and fix author bug?
This commit is contained in:
@@ -312,11 +312,13 @@ class Guild {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The owner of the guild
|
||||
* @type {GuildMember}
|
||||
*/
|
||||
this.owner = this.members.get(data.owner_id);
|
||||
if (data.owner_id) {
|
||||
/**
|
||||
* The owner of the guild
|
||||
* @type {GuildMember}
|
||||
*/
|
||||
this.owner = this.members.get(data.owner_id);
|
||||
}
|
||||
|
||||
if (data.channels) {
|
||||
this.channels.clear();
|
||||
|
||||
Reference in New Issue
Block a user