# UserContextMenuRoute

`function` in `core` · v0.6.0

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

Routes one or more user context-menu commands to a `UserContextMenuHandler`.

Every name is checked against the user registry. The handler's generic must declare the same names, checked in both directions.

```ts
UserContextMenuRoute<Names>(
    names: Names[]
): <TCtor extends AnyHandlerCtor>(
    constructor: AssertContextMenuRoute<ApplicationCommandType.User, Names, TCtor>
) => void
```

Routes one or more user context-menu commands to a `UserContextMenuHandler`.

Every name is checked against the user registry. The handler's generic must declare the same names, checked in both directions.

Parameters.

- `names` `Names[]` — The command name(s) this handler serves.

Returns `<TCtor extends AnyHandlerCtor>(constructor: AssertContextMenuRoute<ApplicationCommandType.User, Names, TCtor>) => void`.
