Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/client/collectors.ts>CollectorOptions

An easy to use Discord API Library for Deno.
Go to Latest
interface CollectorOptions
import { type CollectorOptions } from "https://deno.land/x/harmony@v2.8.0/src/client/collectors.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