Skip to content
Functioncorev0.10.0Decorator

ChannelMenuRoute

Routes channel select menu interactions to a ChannelMenuHandler.

Pass the CustomId definition(s) this handler decodes and list the same ones in the handler's generic. Beside this.values the handler declares this.channels.

ChannelMenuRoute<Defs>(
    defs: Defs
): <TCtor extends AnyHandlerCtor>(
    constructor: AssertComponentRoute<InteractionKind.ChannelMenu, Defs, TCtor>
) => void

Defs

Defs

defs

defs: Defs

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