Skip to content

ReactionUserManager

classe · Source

Manages API methods for users who reacted to a reaction and stores their cache.

Extends: CachedManager

Properties

reaction

reaction: MessageReaction

The reaction that this manager belongs to Source

cache

cache: Collection<Snowflake, User>

The cache of this manager Source

_cache

readonly · private

_cache: Collection

The private cache of items for this manager. Source

holds

readonly · private

holds: function

The data structure belonging to this manager. Source

client

readonly

client: Client

The client that instantiated this Manager Source

Methods

fetch

async

async fetch(options?: FetchReactionUsersOptions): Promise<Collection<Snowflake, User>>

Fetches all the users that gave this reaction. Resolves with a collection of users, mapped by their ids. Parameters

NameTypeDescription
options?FetchReactionUsersOptionsOptions for fetching the users

Returns: Promise<Collection<Snowflake, User>>Source

remove

async

async remove(user?: UserResolvable): Promise<MessageReaction>

Removes a user from this reaction. Parameters

NameTypeDescription
user?UserResolvableThe user to remove the reaction of Default: this.client.user.

Returns: Promise<MessageReaction>Source

resolve

resolve(idOrInstance: string | Object): Object

Resolves a data entry to a data Object. Parameters

NameTypeDescription
idOrInstancestring | ObjectThe id or instance of something in this Manager

Returns: Object — An instance from this Manager Source

resolveId

resolveId(idOrInstance: string | Object): Snowflake

Resolves a data entry to an instance id. Parameters

NameTypeDescription
idOrInstancestring | ObjectThe id or instance of something in this Manager

Returns: SnowflakeSource

Unofficial software. Not affiliated with or supported by Discord.