ReactionUserManager
classe · Source
Manages API methods for users who reacted to a reaction and stores their cache.
Extends: CachedManager
Properties
reaction
The reaction that this manager belongs to Source
cache
The cache of this manager Source
_cache
The private cache of items for this manager. Source
holds
The data structure belonging to this manager. Source
client
The client that instantiated this Manager Source
Methods
fetch
Fetches all the users that gave this reaction. Resolves with a collection of users, mapped by their ids. Parameters
| Name | Type | Description |
|---|---|---|
options? | FetchReactionUsersOptions | Options for fetching the users |
Returns: Promise<Collection<Snowflake, User>>Source
remove
Removes a user from this reaction. Parameters
| Name | Type | Description |
|---|---|---|
user? | UserResolvable | The user to remove the reaction of Default: this.client.user. |
Returns: Promise<MessageReaction>Source
resolve
Resolves a data entry to a data Object. Parameters
| Name | Type | Description |
|---|---|---|
idOrInstance | string | Object | The id or instance of something in this Manager |
Returns: Object — An instance from this Manager Source
resolveId
Resolves a data entry to an instance id. Parameters
| Name | Type | Description |
|---|---|---|
idOrInstance | string | Object | The id or instance of something in this Manager |
Returns: SnowflakeSource