Class REST/Interactions

Various methods for interacting with interactions. Located at Client#rest.interactions.

Hierarchy

  • REST/Interactions

Constructors

Methods

  • Create an initial interaction response.

    Parameters

    • interactionID: string

      The ID of the interaction.

    • interactionToken: string

      The token of the interaction.

    • options: InteractionResponse

      The options for creating the interaction response.

    Returns Promise<void>

    Caching

    This method does not cache its result.

  • Delete a follow-up message.

    Parameters

    • applicationID: string

      The ID of the application.

    • interactionToken: string

      The token of the interaction.

    • messageID: string

      The ID of the message.

    Returns Promise<void>

    Caching

    This method does not cache its result.

  • Delete the original interaction response.

    Parameters

    • applicationID: string

      The ID of the application.

    • interactionToken: string

      The token of the interaction.

    Returns Promise<void>

    Caching

    This method does not cache its result.

  • Edit a followup message.

    Type Parameters

    Parameters

    • applicationID: string

      The ID of the application.

    • interactionToken: string

      The token of the interaction.

    • messageID: string

      The ID of the message.

    • options: InteractionContent

      The options for editing the followup message.

    Returns Promise<Message<T>>

    Caching

    This method does not cache its result.

  • Get a followup message.

    Type Parameters

    Parameters

    • applicationID: string

      The ID of the application.

    • interactionToken: string

      The token of the interaction.

    • messageID: string

      The ID of the message.

    Returns Promise<Message<T>>

    Caching

    This method does not cache its result.