Skip to content
Functioncorev0.10.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>
) => void

Defs

Defs

defs

defs: Defs

The customId definition(s) this handler decodes, one per route.