# UserMenuRoute

`function` in `core` · v0.6.0

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

Routes user select menu interactions to a `UserMenuHandler`.

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. Beside `this.values` the handler declares `this.users` and `this.members`. Discord resolves the members only inside a guild.

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

Routes user select menu interactions to a `UserMenuHandler`.

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. Beside `this.values` the handler declares `this.users` and `this.members`. Discord resolves the members only inside a guild.

Parameters.

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

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