mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
Document Guild.ownerID
This commit is contained in:
parent
3fcc5183dc
commit
77e171e599
3 changed files with 9 additions and 3 deletions
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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue