Skip to main content
Module

x/harmony/mod.ts>CollectorOptions

An easy to use Discord API Library for Deno.
Latest
interface CollectorOptions
import { type CollectorOptions } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Properties

event: string

Event name to listen for

optional
client: Client

Optionally Client object for deinitOnEnd functionality

optional
filter: CollectorFilter

Filter function

optional
max: number

Max entries to collect

optional
deinitOnEnd: boolean

Whether or not to de-initialize on end

optional
timeout: number

Timeout to end the Collector if not fulfilled if any filter or max

event: string

Event name to listen for

optional
client: Client

Optionally Client object for deinitOnEnd functionality

optional
filter: CollectorFilter

Filter function

optional
max: number

Max entries to collect

optional
deinitOnEnd: boolean

Whether or not to de-initialize on end

optional
timeout: number

Timeout to end the Collector if not fulfilled if any filter or max