GuildRoleManager
GuildRoleManager ⇐ RoleManager
A class representing a manager for guild roles.
Kind: global class
Extends: RoleManager
- GuildRoleManager ⇐
RoleManager
- new GuildRoleManager(guildId, client)
- .highest ⇒
- .everyone ⇒
- .cache ⇒
Array
new GuildRoleManager(guildId, client)
Constructs a new instance of the class.
Param | Type | Description |
---|---|---|
guildId | string | The ID of the guild. |
client | Client | The client object. |
guildRoleManager.highest ⇒
Get the highest role from the cache based on position.
Kind: instance property of GuildRoleManager
Returns: The highest role object.
guildRoleManager.everyone ⇒
Get the cached data for everyone in the guild.
Kind: instance property of GuildRoleManager
Returns: The cached data for everyone in the guild.
guildRoleManager.cache ⇒ Array
Retrieves the cache for the current guild.
Kind: instance property of GuildRoleManager
Returns: Array
- - The filtered cache objects for the current guild.