mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add defaultRole to guild ((╯°□°)╯︵ ┻━┻) (#1311)
* (╯°□°)╯︵ ┻━┻ * Update Guild.js
This commit is contained in:
committed by
Schuyler Cebulskie
parent
61f5051dfd
commit
104f3397af
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user