Functioncorev0.5.0Decorator
StringMenuRoute
Routes string select menu interactions to a StringMenuHandler.
Pass the CustomId definition(s) this handler decodes and list the same ones in the handler's generic. The handler reads the chosen option values from this.values.
StringMenuRoute<Defs>(
defs: Defs
): <TCtor extends AnyHandlerCtor>(
constructor: AssertComponentRoute<InteractionKind.StringMenu, Defs, TCtor>
) => voidDefs
Defsdefs
defs: DefsThe customId definition(s) this handler decodes, one per route.