GuildEmojiRoleManager

export class GuildEmojiRoleManager extends DataManager<Snowflake, Role, RoleResolvable>
export class GuildEmojiRoleManager extends DataManager<Snowflake, Role, RoleResolvable>
Manages API methods for roles belonging to emojis and stores their cache.
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
Readonly
client:Client
The client that instantiated this Manager
Inherited from BaseManager
The emoji belonging to this manager
guild:Guild
The guild belonging to this manager
Readonly
holds:Constructable<Holds>
The data structure belonging to this manager.
Inherited from DataManager
add(roleOrRoles):Promise<GuildEmoji>
Adds a role (or multiple roles) to the list of roles that can use this emoji.
NameTypeOptionalDescription
roleOrRolesRoleResolvable | readonly RoleResolvable[] | Collection<Snowflake, Role>NoThe role or roles to add
remove(roleOrRoles):Promise<GuildEmoji>
Removes a role (or multiple roles) from the list of roles that can use this emoji.
NameTypeOptionalDescription
roleOrRolesRoleResolvable | readonly RoleResolvable[] | Collection<Snowflake, Role>NoThe role or roles to remove
resolve(idOrInstance):Holds
Resolves a data entry to a data Object.
Returns
An instance from this Manager
NameTypeOptionalDescription
idOrInstanceHoldsNoThe id or instance of something in this Manager
resolveId(idOrInstance):K
Resolves a data entry to an instance id.
Returns
NameTypeOptionalDescription
idOrInstanceK | HoldsNoThe id or instance of something in this Manager
set(roles):Promise<GuildEmoji>
Sets the role(s) that can use this emoji.
NameTypeOptionalDescription
rolesreadonly RoleResolvable[] | Collection<Snowflake, Role>NoThe roles or role ids to apply
valueOf():Collection<K, Holds>