# SelectMenuRoute

`function` in `seedcord` · v0.11.0

<https://docs.seedcord.org/packages/seedcord/0.11.0/functions/select-menu-route>

Routes select menu interactions to handler classes

Matches the customId prefix before the first colon.

```ts
SelectMenuRoute<SelectMenu>(
    type: SelectMenu,
    routeOrRoutes: string | string[]
): <
    TCtor extends new (
        ...args: any[]
    ) => InteractionHandler<Repliables>
>(
    constructor: AssertHandles<SelectMenuInteractionFor<SelectMenu>, TCtor>
) => void
```

Routes select menu interactions to handler classes

Matches the customId prefix before the first colon.

Parameters.

- `type` `SelectMenu` — Select menu type from [`SelectMenuType`](/packages/seedcord/0.11.0/enums/select-menu-type)
- `routeOrRoutes` `string | string[]` — CustomId prefix(es) to handle

Returns `<TCtor extends new (...args: any[]) => InteractionHandler<Repliables>>(constructor: AssertHandles<SelectMenuInteractionFor<SelectMenu>, TCtor>) => void`.
