# SlashRegistry

`interface` in `core` · v0.4.1

<https://docs.seedcord.org/packages/core/0.4.1/interfaces/slash-registry>

Maps each slash route string to its options and its cache state. `seedcord codegen` populates this. It reads every command's `toJSON()` and emits a `declare module '@seedcord/gateway'` augmentation. `keyof SlashRegistry` is then the compile-time union of every registered route. Never augment it by hand.

```ts
interface SlashRegistry
```

## Examples

```ts
// seedcord-gen.d.ts (emitted, committed)
declare module '@seedcord/gateway' {
  interface SlashRegistry {
    ban: { options: { target: { kind: 'user'; required: true } }; cache: 'cached' };
    help: { options: {}; cache: undefined };
  }
}
```
