mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Document Guild.ownerID
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -54,7 +54,7 @@ class GroupDMChannel extends Channel {
|
||||
this.icon = data.icon;
|
||||
|
||||
/**
|
||||
* The owner of this Group DM's user ID.
|
||||
* The user ID of this Group DM's owner.
|
||||
* @type {string}
|
||||
*/
|
||||
this.ownerID = data.owner_id;
|
||||
|
||||
@@ -147,7 +147,13 @@ class Guild {
|
||||
for (const guildUser of data.members) this._addMember(guildUser, false);
|
||||
}
|
||||
|
||||
if (data.owner_id) this.ownerID = data.owner_id;
|
||||
if (data.owner_id) {
|
||||
/**
|
||||
* The user ID of this guild's owner.
|
||||
* @type {string}
|
||||
*/
|
||||
this.ownerID = data.owner_id;
|
||||
}
|
||||
|
||||
if (data.channels) {
|
||||
this.channels.clear();
|
||||
|
||||
Reference in New Issue
Block a user