Base interaction class, this class should be considered UNSTABLE and may change a lot in the future.

Hierarchy (view full)

Constructors

  • Parameters

    • id: string
    • token: string
    • member: Member

    Returns Interaction

Properties

interactionId: string
member: Member

The user that started the interaction

token: string

Accessors

  • get hasSentCallback(): boolean
  • Returns boolean

  • get isDeferredResponseSent(): boolean
  • Returns boolean

  • get isResponseDeferred(): boolean
  • Returns boolean

Methods

  • Acknowledge this interaction and display a "thinking" state to the user for you to then send a followUp message later.

    You have to ack interactions within 3 seconds but if you are doing things that can take longer than that you can use this function first to tell discord that you are processing the interaction then send the message itself later.

    Parameters

    Returns Promise<void>

  • Acknowledge this interaction and send a message in response to this interaction

    Returns Promise<void>

  • Parameters

    • id: string

    Returns Promise<void>

  • Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Parameters

    • messageId: string

    Returns Promise<Message>

  • Returns Promise<Message>

Generated using TypeDoc