Represents a Component Interaction.

Type Parameters

Hierarchy (view full)

  • Base<string>
    • ComponentInteraction

Constructors

Properties

_lastMessageID: null | string

ID of the last message created with this interaction.

acknowledged: boolean

Interaction acknowledgement.

channel: null | T

Channel on which the interaction was sent, if cached.

channelID: string

ID of the channel on which the interaction was sent.

client: Client

App's client.

Component Interaction Data

guildID: null | (T extends TextChannel
    ? string
    : null | string)

ID of the server on which the interaction was sent.

id: string

Item ID

memberID: string

ID of the interaction author.

message: null | Message<T>

Interaction Message, triggering this interaction, if cached.

messageID: string

ID of the Interaction Message, triggering this interaction.

originalID: null | string

ID of the original response of this interaction, if existant.

Methods

  • Create a follow-up message that replies to the original response. (use ComponentInteraction#createMessage if the interaction has not been acknowledged).

    Parameters

    Returns Promise<Message<T>>

  • This method is used to create a message following this interaction (use ComponentInteraction#createFollowup on already acknowledged interactions).

    Parameters

    Returns Promise<Message<T>>

  • Edit the last message sent with the interaction.

    Parameters

    Returns Promise<Message<T>>

  • Edit the message's original response message.

    Parameters

    • newMessage: {
          content?: string;
          embeds?: Embed[];
      }

      New message's options.

      • Optionalcontent?: string
      • Optionalembeds?: Embed[]

    Returns Promise<Message<T>>

  • Edit Parent Interaction.

    Parameters

    Returns Promise<Message<T>>

  • Get the latest message sent with this interaction.

    Returns Promise<Message<T>>

  • Get the original message response.

    Returns Promise<Message<T>>