Functioncorev0.1.0-next.5Decorator
SelectMenuRoute
Routes select menu interactions to handler classes.
Pass the select kind and the CustomIdCustomId definition(s) this handler decodes. The handler's generic must list the same kind and definitions, or it is a compile error.
SelectMenuRoute<Kind, Defs>(
type: Kind,
defs: Defs
): <TCtor extends AnyHandlerCtor>(
constructor: AssertComponentRoute<Kind, Defs, TCtor>
) => voidSelectMenuRoute<Kind, Defs>(
type: Kind,
defs: Defs
): <TCtor extends AnyHandlerCtor>(
constructor: AssertComponentRoute<Kind, Defs, TCtor>
) => voidKind
KindKindDefs
DefsDefstype
type: Kindtype: KindSelect menu kind from SelectMenuKindSelectMenuKind.
defs
defs: Defsdefs: DefsThe customId definition(s) this handler decodes, one per route.