Document Guild.ownerID

This commit is contained in:
Schuyler Cebulskie
2016-09-19 01:38:18 -04:00
parent 3fcc5183dc
commit 77e171e599
3 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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;

View File

@@ -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();