Class
ReactionCollector
Collects reactions on a message. Use message.createReactionCollector().
Extends EventEmitter
Constructor
new ReactionCollector
(client: Client, messageId: string, channelId: string, options: ReactionCollectorOptions)| Param | Type | Description |
|---|---|---|
| client | Client | |
| messageId | string | |
| channelId | string | |
| options | ReactionCollectorOptions |
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| Param | Type | Description |
|---|---|---|
| event | K | |
| args | ReactionCollectorEvents[] |
on
(event: , listener: (...args: ReactionCollectorEvents[]) => void): this| Param | Type | Description |
|---|---|---|
| event | K | |
| listener | (...args: ReactionCollectorEvents[]) => void |
stop
(reason: ReactionCollectorEndReason): void| Param | Type | Description |
|---|---|---|
| reason | ReactionCollectorEndReason |