Add defaultRole to guild ((╯°□°)╯︵ ┻━┻) (#1311)

* (╯°□°)╯︵ ┻━┻

* Update Guild.js
This commit is contained in:
Gus Caplan
2017-03-30 07:44:08 -05:00
committed by Schuyler Cebulskie
parent 61f5051dfd
commit 104f3397af

View File

@@ -278,7 +278,7 @@ class Guild {
}
/**
* The `#general` TextChannel of the server.
* The `#general` TextChannel of the guild.
* @type {TextChannel}
* @readonly
*/
@@ -286,6 +286,15 @@ class Guild {
return this.channels.get(this.id);
}
/**
* The `@everyone` Role of the guild.
* @type {Role}
* @readonly
*/
get defaultRole() {
return this.roles.get(this.id);
}
/**
* Returns the GuildMember form of a User object, if the user is present in the guild.
* @param {UserResolvable} user The user that you want to obtain the GuildMember of