import type { BigString, DiscordInteraction, MessageComponentTypes } from '@discordeno/types'; import type Client from '../../Client.js'; import type { AnyChannel, FileContent, InteractionApplicationCommandCallbackData, MessageWebhookContent, WebhookPayload } from '../../typings.js'; import type Guild from '../guilds/Guild.js'; import Member from '../guilds/Member.js'; import Message from '../Message.js'; import Permission from '../Permission.js'; import User from '../users/User.js'; import Interaction from './Interaction.js'; export declare class ComponentInteraction extends Interaction { /** The channel id where this interaction occurred in. */ channelID: string; /** The guild id where this interaction occurred in. */ guildID?: string; /** The member object if this interaction occurred in a guild. */ member?: Member; /** The user object for the user that created this interaction. */ user: User; /** The permissions the app or bot has within the channel, the interaction was sent from. */ appPermissions?: Permission; /** The message object, if this interaction occurred on a message. */ message?: Message; /** The custom id of the component. */ customID: string; /** The type of component. */ componentType: MessageComponentTypes; /** The values from a selector component. */ values?: string[]; constructor(data: DiscordInteraction, client: Client); /** The channel if cached, where this interaction occurred. */ get channel(): AnyChannel | undefined; /** The guild if cached, where this interaction occurred. */ get guild(): Guild | undefined; /** Acknowledges the interaction with a defer message update response */ acknowledge(): Promise; /** Respond to the interaction with a followup message. */ createFollowup(content: WebhookPayload, 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: InteractionApplicationCommandCallbackData, 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; /** * Acknowledges the interaction with a defer message update response * Note: You can **not** use more than 1 initial interaction response per interaction. */ deferUpdate(): Promise; /** Delete a message */ deleteMessage(messageID: BigString): Promise; /** * Delete the parent message * Warning: Will error with ephemeral messages. */ deleteOriginalMessage(): Promise; /** Edit a message */ editMessage(messageID: BigString, content: MessageWebhookContent, file?: FileContent | FileContent[]): Promise; /** Edit the parent message */ editOriginalMessage(content: MessageWebhookContent, file?: FileContent | FileContent[]): Promise; /** * Acknowledges the interaction by editing the parent message. If already acknowledged runs editOriginalMessage * Note: You can **not** use more than 1 initial interaction response per interaction, use edit if you have already responded with a different interaction response. * Warning: Will error with ephemeral messages. */ editParent(content: InteractionApplicationCommandCallbackData, file?: FileContent | FileContent[]): Promise; /** * Get the parent message * Warning: Will error with ephemeral messages. */ getOriginalMessage(): Promise; } export default ComponentInteraction; //# sourceMappingURL=Component.d.ts.map