# MentionableMenuRoute

`function` in `core` · v0.6.0

<https://docs.seedcord.org/packages/core/0.6.0/functions/mentionable-menu-route>

Routes mentionable select menu interactions to a `MentionableMenuHandler`.

Pass the [`CustomId`](/packages/custom-id/0.2.1/classes/custom-id) definition(s) this handler decodes and list the same ones in the handler's generic. A mentionable menu accepts users and roles together. `this.users`, `this.members`, and `this.roles` can each come back empty.

```ts
MentionableMenuRoute<Defs>(
    defs: Defs
): <TCtor extends AnyHandlerCtor>(
    constructor: AssertComponentRoute<InteractionKind.MentionableMenu, Defs, TCtor>
) => void
```

Routes mentionable select menu interactions to a `MentionableMenuHandler`.

Pass the [`CustomId`](/packages/custom-id/0.2.1/classes/custom-id) definition(s) this handler decodes and list the same ones in the handler's generic. A mentionable menu accepts users and roles together. `this.users`, `this.members`, and `this.roles` can each come back empty.

Parameters.

- `defs` `Defs` — The customId definition(s) this handler decodes, one per route.

Returns `<TCtor extends AnyHandlerCtor>(constructor: AssertComponentRoute<InteractionKind.MentionableMenu, Defs, TCtor>) => void`.
