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:
HarmoGlace
2020-04-16 12:18:43 +02:00
committed by GitHub
parent 0a3759f683
commit a88b7239b5
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}
/**