Class MessageCollector

A message collector that collects messages sent to a specific channel within a specified time frame. It's recommended that you use client.messages.awaitMessages instead of instantiating this manually unless you know what you're doing.

Hierarchy

Constructors

Properties

boundItemReceiver: ((entry) => Promise<boolean>) = ...

Type declaration

    • (entry): Promise<boolean>
    • Bound function for item receiving

      Parameters

      Returns Promise<boolean>

client: Client
emitter: TypedEventEmitter<CollectorEvents<Message>> = ...
entries: Collection<string, Message> = ...

Collection of successfully collected entries

isActive: boolean = false

Whether the collector is actively collecting elements

maxTimeout: null | Timeout = null

Timeout for max time

options: Partial<CollectorOptions<Message>>
resolve: null | ((value) => void) = null

Method to resolve the promise this collector has when instantiated

Methods

Generated using TypeDoc