Functionseedcordv0.14.0Decorator
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 definitions, and its second generic argument must be the matching select interaction type, or it is a compile error.
SelectMenuRoute<SelectMenu, Defs>(
type: SelectMenu,
defs: Defs
): <
TCtor extends new (
...args: any[]
) => InteractionHandler<Repliables> & HasComponentDefs<Defs>
>(
constructor: AssertHandles<SelectMenuInteractionFor<SelectMenu>, TCtor>
) => voidSelectMenuRoute<SelectMenu, Defs>(
type: SelectMenu,
defs: Defs
): <
TCtor extends new (
...args: any[]
) => InteractionHandler<Repliables> & HasComponentDefs<Defs>
>(
constructor: AssertHandles<SelectMenuInteractionFor<SelectMenu>, TCtor>
) => voidSelectMenu
SelectMenuSelectMenuDefs
DefsDefstype
type: SelectMenutype: SelectMenuSelect menu kind from SelectMenuKindSelectMenuKind.
defs
defs: Defsdefs: DefsThe customId definition(s) this handler decodes, one per route.