Classseedcordv0.12.0
ButtonHandler
Base class for a button interaction handler.
Register the customId definitions this handler decodes with @ButtonRoute@ButtonRoute, list the same ones in the generic, then read this.paramsthis.params for a single route or this.matchthis.match for several. Passing different definitions to the decorator and the generic is a compile error.
abstract class ButtonHandler<
Defs extends readonly AnyCustomId[],
Cache extends CacheType = "cached"
> extends ComponentHandler<ButtonInteraction<Cache>, Defs>abstract class ButtonHandler<
Defs extends readonly AnyCustomId[],
Cache extends CacheType = "cached"
> extends ComponentHandler<ButtonInteraction<Cache>, Defs>Member visibility
Filter class members by access level.
Showing members with Protected visibility and higher.
Defs
The customId definitions this handler decodes, e.g. [typeof ApproveId][typeof ApproveId].
Defs extends readonly AnyCustomId[]Defs extends readonly AnyCustomId[]Cache
The interaction cache state, 'cached''cached' by default.