Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InteractionManager

Hierarchy

  • InteractionManager

Index

Constructors

  • Parameters

    • applicationId: string

      Application's id

    • version: APIVersions

      API Version

    Returns InteractionManager

Methods

  • Create a followup message to the message that triggered the webhook

    Parameters

    • interactionToken: string

      The token that was returned from the createInteraction function.

    • otpions: ExecuteWebhookOptions

      ExecuteWebhookOptions

    Returns Promise<Message>

    Message object

  • deleteFollowupMessage(interactionToken: string, messageId: string): Promise<void>
  • Delete a followup message from a message

    Parameters

    • interactionToken: string

      The token that was sent to the client when the message was sent.

    • messageId: string

      The ID of the message you want to delete.

    Returns Promise<void>

  • deleteOriginalInteractionResponse(iterationToken: string): Promise<void>
  • Delete the original message that was sent by the bot

    Parameters

    • iterationToken: string

      The iteration token of the original interaction.

    Returns Promise<void>

  • Edit a followup message from a message

    Parameters

    • interactionToken: string

      The token that was sent to the client when the message was sent.

    • messageId: string

      The ID of the message you want to edit.

    • otpions: ExecuteWebhookOptions

      ExecuteWebhookOptions

    Returns Promise<Message>

    Message object

  • Edit the original message that triggered the webhook

    Parameters

    • iterationToken: string

      The token that was returned from the original webhook execution.

    • options: ExecuteWebhookOptions

      ExecuteWebhookOptions

    Returns Promise<Message>

    Message object.

  • getFollowupMessage(interactionToken: string, messageId: string): Promise<Message>
  • Get a followup message from a message

    Parameters

    • interactionToken: string

      The token that was sent to the client when the message was sent.

    • messageId: string

      The ID of the message you want to get.

    Returns Promise<Message>

    Message object

  • getOriginalInteractionResponse(interactionToken: string): Promise<Message>
  • Get the original message that was sent by the user that triggered the interaction

    Parameters

    • interactionToken: string

      The token that was sent to the user when they clicked the button.

    Returns Promise<Message>

    The original message that was sent to the webhook.

Properties

version: APIVersions

API Version

#applicationId: string

Application's id

Generated using TypeDoc