# UserMenuRoute

`function` in `core` · v0.10.0

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

Routes user select menu interactions to a `UserMenuHandler`.

Pass the [`CustomId`](/docs/packages/custom-id/0.2.7/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`](/docs/packages/custom-id/0.2.7/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`.
