InteractionListenerOptions

export declare interface InteractionListenerOptions

Properties

check: (id: string) => boolean

A custom check function which overwrites the default one

name: string

The name (customId) of the Interaction

strategy: endsWith | startsWith | equal | include

The strategy the handler should use to check if the interaction should be ran by this class

default

"equal"

type: ComponentType.Button | ComponentType.StringSelect | InteractionType.ModalSubmit

The type of interactions you accept for the listener