Interface PrivateComponentButtonInteraction

Hierarchy

Properties

acknowledged: boolean

If this interaction has been acknowledged.

application?: ClientApplication

The application this interaction is for.

applicationID: string

The ID of the application this interaction is for.

channel: undefined | PrivateChannel
channelID: string

The ID of the channel this interaction was sent from.

createdAt: Date
id: string
locale: string

The locale of the invoking user.

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

  • Respond to this interaction with a modal. This is an initial response, and more than one initial response cannot be used.

    Parameters

    • options: ModalData

      The options for the modal.

    Returns Promise<void>

  • 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>

  • Delete a follow-up message.

    Parameters

    • messageID: string

      The ID of the message.

    Returns Promise<void>