# SlashOptionRegistry

`interface` in `types` · v0.7.1-next.0

<https://docs.seedcord.org/packages/types/0.7.1-next.0/interfaces/slash-option-registry>

Maps each slash route string to its option table. Populated by `seedcord codegen`, which reads every command's `toJSON()` and emits a `declare module 'seedcord'` augmentation, so `keyof SlashOptionRegistry` is the compile-time union of every registered route. Do not augment it by hand, run `seedcord codegen`.

```ts
interface SlashOptionRegistry
```

## Examples

```ts
// seedcord-gen.d.ts (emitted, committed)
declare module 'seedcord' {
  interface SlashOptionRegistry {
    ban: { target: { kind: 'user'; required: true }; reason: { kind: 'string'; required: false } };
    'demo/setup': { channel: { kind: 'channel'; required: true } };
  }
}
```
