Interaction

Interaction

Represents an interaction. You also probably want to look at PingInteraction, CommandInteraction, ComponentInteraction, AutocompleteInteraction, ModalSubmitInteraction, and UnknownInteraction.

Constructor

new Interaction()

Properties:
Name Type Description
acknowledged Boolean

Whether or not the interaction has been acknowledged

applicationID String

The ID of the interaction's application

createdAt Number

Timestamp of the interaction's creation

id String

The ID of the interaction

token String

The interaction token (Interaction tokens are valid for 15 minutes after initial response and can be used to send followup messages but you must send an initial response within 3 seconds of receiving the event. If the 3 second deadline is exceeded, the token will be invalidated.)

type Number

1 is a Ping, 2 is an Application Command, 3 is a Message Component, 4 is a Modal Submit

version Number

The interaction version

Source: