.emit(event, args)
event: K, args: ReactionCollectorEvents[K] → boolean
reactionCollector.emit(event, args);Class
Collects reactions on a message. Use message.createReactionCollector(). Listens to both Events.MessageReactionAdd and Events.MessageReactionAddMany (gateway may batch rapid reactions into ADD_MANY instead of individual ADD events).
Extends EventEmitter
new ReactionCollector(client: Client, messageId: string, channelId: string, options: ReactionCollectorOptions)ClientstringstringReactionCollectorOptionsevent: K, args: ReactionCollectorEvents[K] → boolean
reactionCollector.emit(event, args);event: K, listener: (...args: ReactionCollectorEvents[K]) => void → this
reactionCollector.on(event, listener);reason: ReactionCollectorEndReason → void
reactionCollector.stop(reason);