mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
docs(RoleManager): everyone role can't be null (#3995)
* docs(RoleManager) : fix jsdoc everyone role can't be null It fixes the jsdoc of RoleManager ; the everyone role of a guild can't be null * Everyone role can't be null * fix(typings): mark RoleManager#everyone as non-null Co-authored-by: Crawl <icrawltogo@gmail.com> Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
@@ -125,11 +125,11 @@ class RoleManager extends BaseManager {
|
||||
|
||||
/**
|
||||
* The `@everyone` role of the guild
|
||||
* @type {?Role}
|
||||
* @type {Role}
|
||||
* @readonly
|
||||
*/
|
||||
get everyone() {
|
||||
return this.cache.get(this.guild.id) || null;
|
||||
return this.cache.get(this.guild.id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user