Module
x/discord_api_types/payloads/v10/_interactions/_applicationCommands/chatInput.ts
Up to date Discord API Typings, versioned by the API version
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148import type { APIApplicationCommandAttachmentOption, APIApplicationCommandInteractionDataAttachmentOption,} from './_chatInput/attachment.ts';import type { APIApplicationCommandBooleanOption, APIApplicationCommandInteractionDataBooleanOption,} from './_chatInput/boolean.ts';import type { APIApplicationCommandChannelOption, APIApplicationCommandInteractionDataChannelOption,} from './_chatInput/channel.ts';import type { APIApplicationCommandIntegerOption, APIApplicationCommandInteractionDataIntegerOption,} from './_chatInput/integer.ts';import type { APIApplicationCommandInteractionDataMentionableOption, APIApplicationCommandMentionableOption,} from './_chatInput/mentionable.ts';import type { APIApplicationCommandInteractionDataNumberOption, APIApplicationCommandNumberOption,} from './_chatInput/number.ts';import type { APIApplicationCommandInteractionDataRoleOption, APIApplicationCommandRoleOption,} from './_chatInput/role.ts';import type { APIApplicationCommandInteractionDataStringOption, APIApplicationCommandStringOption,} from './_chatInput/string.ts';import type { APIApplicationCommandInteractionDataSubcommandOption, APIApplicationCommandSubcommandOption,} from './_chatInput/subcommand.ts';import type { APIApplicationCommandInteractionDataSubcommandGroupOption, APIApplicationCommandSubcommandGroupOption,} from './_chatInput/subcommandGroup.ts';import type { APIApplicationCommandInteractionDataUserOption, APIApplicationCommandUserOption,} from './_chatInput/user.ts';import type { APIBaseApplicationCommandInteractionData } from './internals.ts';import type { Snowflake } from '../../../../globals.ts';import type { APIAttachment, APIRole, APIUser } from '../../mod.ts';import type { APIApplicationCommandInteractionWrapper, APIInteractionDataResolvedChannel, APIInteractionDataResolvedGuildMember, ApplicationCommandType,} from '../applicationCommands.ts';import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base.ts';
export * from './_chatInput/attachment.ts';export * from './_chatInput/base.ts';export * from './_chatInput/boolean.ts';export * from './_chatInput/channel.ts';export * from './_chatInput/integer.ts';export * from './_chatInput/mentionable.ts';export * from './_chatInput/number.ts';export * from './_chatInput/role.ts';export * from './_chatInput/shared.ts';export * from './_chatInput/string.ts';export * from './_chatInput/subcommand.ts';export * from './_chatInput/subcommandGroup.ts';export * from './_chatInput/user.ts';
/** * https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure */export type APIApplicationCommandBasicOption = | APIApplicationCommandStringOption | APIApplicationCommandIntegerOption | APIApplicationCommandBooleanOption | APIApplicationCommandUserOption | APIApplicationCommandChannelOption | APIApplicationCommandRoleOption | APIApplicationCommandMentionableOption | APIApplicationCommandNumberOption | APIApplicationCommandAttachmentOption;
/** * https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure */export type APIApplicationCommandOption = | APIApplicationCommandSubcommandOption | APIApplicationCommandSubcommandGroupOption | APIApplicationCommandBasicOption;
/** * https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-interaction-data-option-structure */export type APIApplicationCommandInteractionDataOption = | APIApplicationCommandInteractionDataSubcommandOption | APIApplicationCommandInteractionDataSubcommandGroupOption | APIApplicationCommandInteractionDataBasicOption;
export type APIApplicationCommandInteractionDataBasicOption = | APIApplicationCommandInteractionDataStringOption | APIApplicationCommandInteractionDataIntegerOption | APIApplicationCommandInteractionDataBooleanOption | APIApplicationCommandInteractionDataUserOption | APIApplicationCommandInteractionDataChannelOption | APIApplicationCommandInteractionDataRoleOption | APIApplicationCommandInteractionDataMentionableOption | APIApplicationCommandInteractionDataNumberOption | APIApplicationCommandInteractionDataAttachmentOption;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */export interface APIChatInputApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData<ApplicationCommandType.ChatInput> { options?: APIApplicationCommandInteractionDataOption[]; resolved?: APIChatInputApplicationCommandInteractionDataResolved;}
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure */export interface APIChatInputApplicationCommandInteractionDataResolved { users?: Record<Snowflake, APIUser>; roles?: Record<Snowflake, APIRole>; members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>; channels?: Record<Snowflake, APIInteractionDataResolvedChannel>; attachments?: Record<Snowflake, APIAttachment>;}
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIChatInputApplicationCommandInteraction = APIApplicationCommandInteractionWrapper<APIChatInputApplicationCommandInteractionData>;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIChatInputApplicationCommandDMInteraction = APIDMInteractionWrapper<APIChatInputApplicationCommandInteraction>;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIChatInputApplicationCommandGuildInteraction = APIGuildInteractionWrapper<APIChatInputApplicationCommandInteraction>;