Skip to content

Commit

Permalink
Add defaultRole to guild ((╯°□°)╯︵ ┻━┻) (#1311)
Browse files Browse the repository at this point in the history
* (╯°□°)╯︵ ┻━┻

* Update Guild.js
  • Loading branch information
devsnek authored and Gawdl3y committed Mar 30, 2017
1 parent 61f5051 commit 104f339
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/structures/Guild.js
Expand Up @@ -278,14 +278,23 @@ class Guild {
}

/**
* The `#general` TextChannel of the server.
* The `#general` TextChannel of the guild.
* @type {TextChannel}
* @readonly
*/
get defaultChannel() {
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
Expand Down

0 comments on commit 104f339

Please sign in to comment.