Skip to main content
Module

x/discord_api_types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.ts

Up to date Discord API Typings, versioned by the API version
Go to Latest
File
import type { APIApplicationCommandOptionBase, APIApplicationCommandOptionWithAutocompleteOrChoicesWrapper, APIInteractionDataOptionBase,} from './base.ts';import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared.ts';
interface APIApplicationCommandNumberOptionBase extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Number> { /** * If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted. */ min_value?: number; /** * If the option is an `INTEGER` or `NUMBER` type, the maximum value permitted. */ max_value?: number;}
export type APIApplicationCommandNumberOption = APIApplicationCommandOptionWithAutocompleteOrChoicesWrapper< APIApplicationCommandNumberOptionBase, APIApplicationCommandOptionChoice<number>>;
export interface APIApplicationCommandInteractionDataNumberOption extends APIInteractionDataOptionBase<ApplicationCommandOptionType.Number, number> { focused?: boolean;}