Classseedcordv0.12.0
SelectHandler
Base class for a select menu handler.
Pass the select kind first and the customId definitions second, the same order as @SelectMenuRoute@SelectMenuRoute, so this.eventthis.event and this.event.valuesthis.event.values are narrowed to that kind. Read this.paramsthis.params for a single route or this.matchthis.match for several.
abstract class SelectHandler<
Kind extends SelectMenuType,
Defs extends readonly AnyCustomId[],
Cache extends CacheType = "cached"
> extends ComponentHandler<SelectMenuInteractionFor<Kind, Cache>, Defs>abstract class SelectHandler<
Kind extends SelectMenuType,
Defs extends readonly AnyCustomId[],
Cache extends CacheType = "cached"
> extends ComponentHandler<SelectMenuInteractionFor<Kind, Cache>, Defs>Member visibility
Filter class members by access level.
Showing members with Protected visibility and higher.
Kind
The select kind from SelectMenuTypeSelectMenuType, e.g. SelectMenuType.UserSelectMenuType.User.
Kind extends SelectMenuTypeKind extends SelectMenuTypeDefs
The customId definitions this handler decodes, e.g. [typeof AssignId][typeof AssignId].
Defs extends readonly AnyCustomId[]Defs extends readonly AnyCustomId[]Cache
The interaction cache state, 'cached''cached' by default.