Manages API methods for roles belonging to emojis and stores their cache.
Extends
DataManager<Snowflake, Role, RoleResolvable>The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerAdds a role (or multiple roles) to the list of roles that can use this emoji.
Name | Type | Optional | Description |
---|---|---|---|
roleOrRoles | RoleResolvable | readonly RoleResolvable[] | Collection<Snowflake, Role> | No | The role or roles to add |
Removes a role (or multiple roles) from the list of roles that can use this emoji.
Name | Type | Optional | Description |
---|---|---|---|
roleOrRoles | RoleResolvable | readonly RoleResolvable[] | Collection<Snowflake, Role> | No | The role or roles to remove |
Resolves a data entry to a data Object.
Returns
An instance from this ManagerName | Type | Optional | Description |
---|---|---|---|
idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
Name | Type | Optional | Description |
---|---|---|---|
idOrInstance | K | Holds | No | The id or instance of something in this Manager |
Sets the role(s) that can use this emoji.
Name | Type | Optional | Description |
---|---|---|---|
roles | readonly RoleResolvable[] | Collection<Snowflake, Role> | No | The roles or role ids to apply |