The reaction collector for a message.

Example

new MessageReactionCollector(message);

Hierarchy

Constructors

Properties

client: Client
collected: Collection<number, MessageReaction>

The collected data.

createdAt: Date

The date the collector was created.

endedAt?: Date

The date the collector was ended.

message: Message

Accessors

  • get createdTimestamp(): number
  • The timestamp the collector was created.

    Returns number

  • get endedTimestamp(): undefined | number
  • The timestamp the collector was ended.

    Returns undefined | number

  • get isEnded(): boolean
  • Whether the collector has ended.

    Returns boolean

  • get uptime(): number
  • The time the collector has been running.

    Returns number

Methods

  • Dispose a collected item.

    Returns

    The disposed item.

    Example

    collector.dispose('abc');
    

    Parameters

    • itemId: number

      The ID of the item to dispose.

    Returns undefined | MessageReaction

  • End the collector.

    Example

    collector.end();
    

    Returns void