# SlashOptions

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

<https://docs.seedcord.org/packages/http/0.1.0-next.0/types/slash-options>

The typed view over a chat-input command's options for one route on the HTTP transport. Each getter restricts its `name` to that route's options of the matching kind, drops the null on required options, narrows `choices` to their literal union, and only appears when the route has an option of that kind. The rich kinds return `discord-api-types` payloads resolved from the interaction's `resolved` data.

A channel option declared with `addChannelTypes` narrows `getChannel` to the matching resolved-channel subtype.

## Declaration

```ts
type SlashOptions<Route extends keyof SlashOptionRegistry> = SlashOptions<
    Route,
    HttpLens
>;
```
