Class

ReactionCollector

Collects reactions on a message. Use message.createReactionCollector().

Extends EventEmitter

Constructor

new ReactionCollector(client: Client, messageId: string, channelId: string, options: ReactionCollectorOptions)
ParamTypeDescription
clientClient
messageIdstring
channelIdstring
optionsReactionCollectorOptions

Properties

channelId: string (readonly)
client: Client (readonly)
collected: Collection<string, CollectedReaction> (readonly)
messageId: string (readonly)
options: Required<ReactionCollectorOptions> (readonly)

Methods

emit(event: , args: ReactionCollectorEvents[]): boolean
ParamTypeDescription
eventK
argsReactionCollectorEvents[]
on(event: , listener: (...args: ReactionCollectorEvents[]) => void): this
ParamTypeDescription
eventK
listener(...args: ReactionCollectorEvents[]) => void
stop(reason: ReactionCollectorEndReason): void
ParamTypeDescription
reasonReactionCollectorEndReason