Skip to content

GuildRoleManager

GuildRoleManager ⇐ RoleManager

A class representing a manager for guild roles.

Kind: global class
Extends: RoleManager

new GuildRoleManager(guildId, client)

Constructs a new instance of the class.

ParamTypeDescription
guildIdstringThe ID of the guild.
clientClientThe 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.