import { ApplicationCommandTypes } from '@discordeno/types'; import Collection from '../../Collection.js'; import Channel from '../channels/Channel.js'; import Member from '../guilds/Member.js'; import Role from '../guilds/Role.js'; import Message from '../Message.js'; import User from '../users/User.js'; import Interaction from './Interaction.js'; import type { BigString, DiscordAttachment, DiscordInteraction, DiscordInteractionDataOption, DiscordMessageComponents, MessageComponentTypes } from '@discordeno/types'; import type Client from '../../Client.js'; import type { AnyChannel, FileContent, InteractionContent, InteractionContentEdit } from '../../typings.js'; export declare class CommandInteraction extends Interaction { name: string; channel: AnyChannel; /** The type of component */ componentType?: MessageComponentTypes; /** The custom id provided for this component. */ customId?: string; /** The components if its a Modal Submit interaction. */ components?: DiscordMessageComponents; /** The values chosen by the user. */ values?: string[]; /** the type of the invoked command */ commandType: ApplicationCommandTypes; /** The Ids and Message objects */ messages: Collection; /** The Ids and User objects */ users: Collection; /** The Ids and partial Member objects */ members: Collection; /** The Ids and Role objects */ roles: Collection; /** The Ids and partial Channel objects */ channels: Collection; /** The ids and attachment objects */ attachments: Collection; /** The params + values from the user */ options?: DiscordInteractionDataOption[]; /** The target id if this is a context menu command. */ targetID?: string; /** the id of the guild the command is registered to */ guildID?: string; member?: Member; user: User; constructor(info: DiscordInteraction, client: Client); get data(): { name: string; component_type: MessageComponentTypes | undefined; custom_id: string | undefined; components: DiscordMessageComponents | undefined; values: string[] | undefined; type: ApplicationCommandTypes; resolved: { messages: Record; users: Record; members: Record; roles: Record; channels: Record; attachments: Record; }; options: DiscordInteractionDataOption[] | undefined; target_id: string | undefined; guild_id: string | undefined; }; /** * Acknowledges the interaction with a defer response * Note: You can **not** use more than 1 initial interaction response per interaction. */ acknowledge(flags?: number): Promise; /** Respond to the interaction with a followup message */ createFollowup(content: string | InteractionContent, file?: FileContent | FileContent[]): Promise; /** * Acknowledges the interaction with a message. If already acknowledged runs createFollowup * Note: You can **not** use more than 1 initial interaction response per interaction, use createFollowup if you have already responded with a different interaction response. */ createMessage(content: string | InteractionContent, file?: FileContent | FileContent[]): Promise; /** * Acknowledges the interaction with a defer response * Note: You can **not** use more than 1 initial interaction response per interaction. */ defer(flags?: number): Promise; /** Delete a message */ deleteMessage(messageID: BigString): Promise; /** * Delete the Original message * Warning: Will error with ephemeral messages. */ deleteOriginalMessage(): Promise; /** Edit a message */ editMessage(messageID: BigString, content: string | InteractionContentEdit, file?: FileContent | FileContent[]): Promise; /** Edit the Original response message */ editOriginalMessage(content: string | InteractionContentEdit, file?: FileContent | FileContent[]): Promise; /** * Get the Original response message * Warning: Will error with ephemeral messages. */ getOriginalMessage(): Promise; } export default CommandInteraction; //# sourceMappingURL=Command.d.ts.map