Preview environment

interface AwaitMessageComponentOptions

extends

Omit<MessageComponentCollectorOptions<Interaction>, 'max' | 'maxComponents' | 'maxUsers'>
export interface AwaitMessageComponentOptions<Interaction extends CollectedMessageInteraction> extends Omit<MessageComponentCollectorOptions<Interaction>, 'max' | 'maxComponents' | 'maxUsers'>

An object containing the same properties as CollectorOptions, but a few more:

Type Parameters

Interaction extends CollectedMessageInteraction

componentType : ComponentType

The type of component interaction to collect

dispose : boolean

Whether to remove the message component interaction after collecting

The filter applied to this collector

idle : number

Time to wait without another message component interaction before ending the collector

interactionResponse : InteractionResponse

The interaction response to collect interactions from

time : number

Time to wait for an interaction before rejecting