Interface PrivateComponentButtonInteraction

interface PrivateComponentButtonInteraction {
    acknowledged: boolean;
    appPermissions: undefined;
    application?: ClientApplication;
    applicationID: string;
    channel: undefined | AnyPrivateChannel;
    channelID: string;
    client: Client<ClientEvents>;
    createdAt: Date;
    data: MessageComponentButtonInteractionData;
    entitlements: (Entitlement | TestEntitlement)[];
    guild: undefined;
    guildID: undefined;
    guildLocale: undefined;
    guildPartial: undefined;
    id: string;
    locale: string;
    member: undefined;
    memberPermissions: undefined;
    message: Message<Uncached | AnyPrivateChannel>;
    token: string;
    type: MESSAGE_COMPONENT;
    user: User;
    version: 1;
    createFollowup(options): Promise<FollowupMessageInteractionResponse<ComponentInteraction<BUTTON, Uncached | AnyPrivateChannel>>>;
    createMessage(options): Promise<InitialMessagedInteractionResponse<ComponentInteraction<BUTTON, Uncached | AnyPrivateChannel>>>;
    createModal(options): Promise<void>;
    defer(flags?): Promise<void>;
    deferUpdate(flags?): Promise<void>;
    deleteFollowup(messageID): Promise<void>;
    deleteOriginal(): Promise<void>;
    editFollowup(messageID, options): Promise<Message<Uncached | AnyPrivateChannel>>;
    editOriginal(options): Promise<Message<Uncached | AnyPrivateChannel>>;
    editParent(options): Promise<void>;
    getFollowup(messageID): Promise<Message<Uncached | AnyPrivateChannel>>;
    getOriginal(): Promise<Message<Uncached | AnyPrivateChannel>>;
    inCachedGuildChannel(): this is ComponentInteraction<BUTTON, AnyTextableGuildChannel>;
    inPrivateChannel(): this is ComponentInteraction<BUTTON, PrivateChannel | Uncached>;
    isAutocompleteInteraction(): this is AutocompleteInteraction<Uncached | AnyInteractionChannel>;
    isButtonComponentInteraction(): this is ComponentInteraction<BUTTON, Uncached | AnyPrivateChannel>;
    isCommandInteraction(): this is CommandInteraction<Uncached | AnyInteractionChannel, ApplicationCommandTypes>;
    isComponentInteraction(): this is ComponentInteraction<BUTTON | SelectMenuTypes, Uncached | AnyInteractionChannel>;
    isModelSubmitInteraction(): this is ModalSubmitInteraction<Uncached | AnyInteractionChannel>;
    isPingInteraction(): this is PingInteraction;
    isSelectMenuComponentInteraction(): this is ComponentInteraction<SelectMenuTypes, Uncached | AnyPrivateChannel>;
    premiumRequired(): Promise<void>;
    reply(options): Promise<MessageInteractionResponse<ComponentInteraction<BUTTON, Uncached | AnyPrivateChannel>>>;
    toJSON(): JSONComponentInteraction;
    toString(): string;
}

Hierarchy (view full)

Properties

acknowledged: boolean

If this interaction has been acknowledged.

appPermissions: undefined
application?: ClientApplication

The application this interaction is for.

applicationID: string

The ID of the application this interaction is for.

channel: undefined | AnyPrivateChannel
channelID: string

The ID of the channel this interaction was sent from.

createdAt: Date

The data associated with the interaction.

entitlements: (Entitlement | TestEntitlement)[]

The entitlements for the user that created this interaction, and the guild it was created in.

guild: undefined
guildID: undefined
guildLocale: undefined
guildPartial: undefined
id: string
locale: string

The locale of the invoking user.

member: undefined
memberPermissions: undefined

The message the interaction is from.

token: string

The token of this interaction.

user: User

The user that invoked this interaction.

version: 1

Read-only property, always 1

Methods

  • Defer this interaction with a DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE response. This is an initial response, and more than one initial response cannot be used.

    Parameters

    • Optional flags: number

      The flags to respond with.

    Returns Promise<void>

  • Defer this interaction with a DEFERRED_UPDATE_MESSAGE response. This is an initial response, and more than one initial response cannot be used.

    Parameters

    • Optional flags: number

      The flags to respond with.

    Returns Promise<void>