# CommandRoute

`interface` in `http` · v0.3.1

<https://docs.seedcord.org/packages/http/0.3.1/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 extends RouteModule
```

## Properties

### exportName

```ts
readonly exportName: string
```

The exported binding inside the loaded module.

### from

```ts
readonly from: string
```

The source file the row came from, reported when the export is missing.

### load

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

Lazy import of the module, evaluated on first hit.

### name

```ts
readonly name: string
```

### type

```ts
readonly type: RegistrableCommandType
```
