interface BotEventEmitterOptions

Options for the bot event emitter.

Properties

strategy?: string

How the bot will receive and emit events.

Default: EventStrategy.Polling

pollingInterval?: number

The interval in seconds at which the bot will poll the notifications endpoint. Only used if strategy is EventStrategy.Polling.

Default: 5

processFrom?: Date

The Date to begin processing notifications from. Only used if strategy is EventStrategy.Polling.

Default: new Date()

firehoseOptions?: FirehoseOptions

Options to pass to the Firehose constructor.

See also: EventStrategy.Jetstream

jetstreamOptions?: JetstreamOptions<Collection>

Options to pass to the Jetstream constructor. Only used if strategy is EventStrategy.Jetstream.

See also: EventStrategy.Jetstream