# CommandRoute

`interface` in `http` · v0.1.0-next.0

<https://docs.seedcord.org/packages/http/0.1.0-next.0/interfaces/command-route>

A slash or context-menu command row. `type` picks the per-kind map, `name` is the lookup key. For a chat-input command with subcommands, `name` is the full route path (`'config/set'`), the same key `@SlashRoute` registers.

```ts
interface CommandRoute
```

## Properties

### load

```ts
readonly load: () => Promise<unknown>
```

Lazy import of the handler module, evaluated on first hit.

### name

```ts
readonly name: string
```

### type

```ts
readonly type: ApplicationCommandType
```
