Class UserSelectMenuInteraction

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

Hierarchy (view full)

Constructors

Properties

channelId: string
componentType: ComponentType
customIdRaw: string
interactionId: string
member: Member

The user that started the interaction

message: Message
token: string
values: InteractionUser[] = []

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 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>

Generated using TypeDoc