Class PingInteraction

Represents a PING interaction. This will not be received over a gateway connection.

Hierarchy

Constructors

Properties

acknowledged: boolean

If this interaction has been acknowledged.

application?: ClientApplication

The application this interaction is for.

applicationID: string

The ID of the application this interaction is for.

id: string
token: string

The token of this interaction.

type: PING

The type of this interaction.

version: 1

Read-only property, always 1

Accessors

  • get createdAt(): Date
  • Returns Date

Methods

  • Responds to the interaction with a PONG.

    Returns Promise<void>

  • Returns string

  • Parameters

    • data: unknown

    Returns void

  • Parameters

    • Optional timestamp: number | Date

    Returns string

  • Parameters

    • id: string

    Returns Date

  • Parameters

    • id: string

    Returns number

Generated using TypeDoc