Module
x/discord_api_types/payloads/v10/_interactions/_applicationCommands/contextMenu.ts
Up to date Discord API Typings, versioned by the API version
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105import type { APIBaseApplicationCommandInteractionData } from './internals.ts';import type { Snowflake } from '../../../../globals.ts';import type { APIMessage } from '../../channel.ts';import type { APIUser } from '../../user.ts';import type { APIApplicationCommandInteractionWrapper, APIInteractionDataResolvedGuildMember, ApplicationCommandType,} from '../applicationCommands.ts';import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base.ts';
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */export interface APIUserApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData<ApplicationCommandType.User> { target_id: Snowflake; resolved: APIUserApplicationCommandInteractionDataResolved;}
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure */export interface APIUserApplicationCommandInteractionDataResolved { users: Record<Snowflake, APIUser>; members?: Record<Snowflake, APIInteractionDataResolvedGuildMember>;}
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */export interface APIMessageApplicationCommandInteractionData extends APIBaseApplicationCommandInteractionData<ApplicationCommandType.Message> { target_id: Snowflake; resolved: APIMessageApplicationCommandInteractionDataResolved;}
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure */export interface APIMessageApplicationCommandInteractionDataResolved { messages: Record<Snowflake, APIMessage>;}
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data */export type APIContextMenuInteractionData = | APIUserApplicationCommandInteractionData | APIMessageApplicationCommandInteractionData;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIUserApplicationCommandInteraction = APIApplicationCommandInteractionWrapper<APIUserApplicationCommandInteractionData>;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIUserApplicationCommandDMInteraction = APIDMInteractionWrapper<APIUserApplicationCommandInteraction>;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIUserApplicationCommandGuildInteraction = APIGuildInteractionWrapper<APIUserApplicationCommandInteraction>;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIMessageApplicationCommandInteraction = APIApplicationCommandInteractionWrapper<APIMessageApplicationCommandInteractionData>;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIMessageApplicationCommandDMInteraction = APIDMInteractionWrapper<APIMessageApplicationCommandInteraction>;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIMessageApplicationCommandGuildInteraction = APIGuildInteractionWrapper<APIMessageApplicationCommandInteraction>;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIContextMenuInteraction = APIUserApplicationCommandInteraction | APIMessageApplicationCommandInteraction;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIContextMenuDMInteraction = | APIUserApplicationCommandDMInteraction | APIMessageApplicationCommandDMInteraction;
/** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object */export type APIContextMenuGuildInteraction = | APIUserApplicationCommandGuildInteraction | APIMessageApplicationCommandGuildInteraction;