ComponentInteraction
Signature
export declare class ComponentInteraction<FromGuild extends boolean = boolean, Type extends APIMessageComponentInteraction = APIMessageComponentInteraction> extends Interaction<FromGuild, Type>Properties
29Methods
28updatedeferUpdatefetchMessagefetchResponsewritemodaleditOrReplyeditMessageeditResponsedeleteResponsedeleteMessagefollowuphasRepliedOrAwaitPendingReplyreplydeferReplyisButtonisChannelSelectMenuisRoleSelectMenuisMentionableSelectMenuisUserSelectMenuisStringSelectMenuisChatInputisUserisMessageisAutocompleteisModalisEntryPointfetchGuild
Properties
data: ObjectToLower<APIMessageComponentInteraction['data']>;channel: AllChannels;type: InteractionType.MessageComponent;message: MessageStructure;entitlements: EntitlementStructure[];customIdGetterget customId(): string;componentTypeGetterget componentType(): ComponentType.Button | ComponentType.StringSelect | ComponentType.UserSelect | ComponentType.RoleSelect | ComponentType.MentionableSelect | ComponentType.ChannelSelect;readonly client: UsingClient;protected __reply?: __InternalReplyFunction | undefined;user: UserStructure;member: When<FromGuild, InteractionGuildMemberStructure, undefined>;replied?: boolean;private _repliedPromise?;deferred?: boolean;appPermissions: PermissionsBitField;private matchReplied;id: string;createdTimestampGetterget createdTimestamp(): number;Create a timestamp for the current object.
createdAtGetterget createdAt(): Date;createdAt gets the creation Date instace of the current object.
guildId?: string | undefined;guild?: { locale: Locale; id: string; features: GuildFeature[]; } | undefined;token: string;version: 1;locale: 'id' | 'en-US' | 'en-GB' | 'bg' | 'zh-CN' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'nl' | 'fi' | 'fr' | 'de' | 'el' | 'hi' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'ru' | 'es-ES' | 'es-419' | 'sv-SE' | 'th' | 'tr' | 'uk' | 'vi';applicationId: string;guildLocale?: 'id' | 'en-US' | 'en-GB' | 'bg' | 'zh-CN' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'nl' | 'fi' | 'fr' | 'de' | 'el' | 'hi' | 'hu' | 'it' | 'ja' | 'ko' | 'lt' | 'no' | 'pl' | 'pt-BR' | 'ro' | 'ru' | 'es-ES' | 'es-419' | 'sv-SE' | 'th' | 'tr' | 'uk' | 'vi' | undefined;authorizingIntegrationOwners: { 0?: string | undefined; 1?: string | undefined; };context?: InteractionContextType | undefined;attachmentSizeLimit: number;Methods
update(data: ComponentInteractionMessageUpdate): Promise<undefined>;deferUpdate(): Promise<undefined>;fetchMessage(messageId: string): Promise<WebhookMessageStructure>;fetchResponse(): Promise<WebhookMessageStructure>;write<FR extends boolean = false>(body: InteractionCreateBodyRequest, withResponse?: FR): Promise<When<FR, WebhookMessageStructure, void>>;modal(body: ModalCreateBodyRequest, options?: undefined): Promise<undefined>;modal(body: ModalCreateBodyRequest, options: ModalCreateOptions): Promise<ModalSubmitInteraction | null>;editOrReply<FR extends boolean = false>(body: InteractionCreateBodyRequest, fetchReply?: FR): Promise<When<FR, WebhookMessageStructure, void>>;editMessage(messageId: string, body: InteractionMessageUpdateBodyRequest): Promise<WebhookMessageStructure>;editResponse(body: InteractionMessageUpdateBodyRequest): Promise<WebhookMessageStructure>;deleteResponse(): Promise<void>;deleteMessage(messageId: string): Promise<void>;followup(body: MessageWebhookCreateBodyRequest): Promise<WebhookMessageStructure>;protected hasRepliedOrAwaitPendingReply(): Promise<boolean>;reply<WR extends boolean = false>(body: ReplyInteractionBody, withResponse?: WR): Promise<When<WR, WebhookMessageStructure, undefined>>;deferReply<WR extends boolean = false>(flags?: MessageFlags, withResponse?: WR): Promise<When<WR, WebhookMessageStructure, undefined>>;isButton(): this is ButtonInteraction;isChannelSelectMenu(): this is ChannelSelectMenuInteraction;isRoleSelectMenu(): this is RoleSelectMenuInteraction;isMentionableSelectMenu(): this is MentionableSelectMenuInteraction;isUserSelectMenu(): this is UserSelectMenuInteraction;isStringSelectMenu(): this is StringSelectMenuInteraction;isChatInput(): this is ChatInputCommandInteraction;isUser(): this is UserCommandInteraction;isMessage(): this is MessageCommandInteraction;isAutocomplete(): this is AutocompleteInteraction;isModal(): this is ModalSubmitInteraction;isEntryPoint(): this is EntryPointInteraction;fetchGuild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'> | undefined>;fetchGuild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;