Class ModalSubmitInteraction

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

Hierarchy (view full)

Properties

channelId: string
customIdRaw: string
interactionId: string
member: Member

The user that started the interaction

message: null | Message
token: string

Raw access to this values array has been superseded and will now cause a typing error. Please migrate to the newer accessor methods: getTextInputValue, etc...

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 update the message the component was on at a later time (within 15 mins).

    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 update the message later.

    Use updateOriginalResponse to update the message

    Returns Promise<void>

  • Acknowledge this interaction and update the message the component was on

    Use updateOriginalResponse to update the message

    Returns Promise<void>

  • Parameters

    • id: string

    Returns Promise<void>

  • Gets a text input value

    Parameters

    • name: string

    Returns null | ModalSubmitInteractionValue

    The component value if the component both exists and is a text input, null otherwise

  • Returns Promise<void>

Generated using TypeDoc