From 104f3397afd5d88fe987e60ebfa3fb0114d2e780 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Thu, 30 Mar 2017 07:44:08 -0500 Subject: [PATCH] =?UTF-8?q?Add=20defaultRole=20to=20guild=20((=E2=95=AF?= =?UTF-8?q?=C2=B0=E2=96=A1=C2=B0=EF=BC=89=E2=95=AF=EF=B8=B5=20=E2=94=BB?= =?UTF-8?q?=E2=94=81=E2=94=BB)=20(#1311)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * (╯°□°)╯︵ ┻━┻ * Update Guild.js --- src/structures/Guild.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index b3e2f4d10..b837e48c9 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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