mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
refactor: move Guild#defaultRole to RoleStore#everyone (#3347)
* remove guild#defaultRole * add RoleStore#defaultRole * typings * fix trailing space * another one * Rename it to everyone
This commit is contained in:
@@ -110,6 +110,15 @@ class RoleStore extends DataStore {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* The `@everyone` role of the guild
|
||||
* @type {?Role}
|
||||
* @readonly
|
||||
*/
|
||||
get everyone() {
|
||||
return this.get(this.guild.id) || null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The role with the highest position in the store
|
||||
* @type {Role}
|
||||
|
||||
Reference in New Issue
Block a user