Skip to main content
Module

x/discord_api_types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.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 APIApplicationCommandIntegerOptionBase extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Integer> { /** * 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 APIApplicationCommandIntegerOption = APIApplicationCommandOptionWithAutocompleteOrChoicesWrapper< APIApplicationCommandIntegerOptionBase, APIApplicationCommandOptionChoice<number>>;
export interface APIApplicationCommandInteractionDataIntegerOption extends APIInteractionDataOptionBase<ApplicationCommandOptionType.Integer, number> { focused?: boolean;}