mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Add defaultRole to guild ((╯°□°)╯︵ ┻━┻) (#1311)
* (╯°□°)╯︵ ┻━┻ * Update Guild.js
This commit is contained in:
parent
61f5051dfd
commit
104f3397af
1 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue