Class ExecutedCommandContext

Context information about a command being run

Hierarchy (view full)

Constructors

Properties

channelId: string
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 open up a modal for the user.

    You have to acknowledge the interaction within 3 seconds, and it can only be done once.

    Parameters

    Returns Promise<void>

  • Parameters

    • id: string

    Returns Promise<void>

Generated using TypeDoc