Typehttpv0.2.3
SlashOptions
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.
type SlashOptions<Route extends keyof SlashOptionRegistry> = SlashOptions<
Route,
HttpLens
>;Route
A route key from the generated SlashOptionRegistry.
Route extends keyof SlashOptionRegistry