If this interaction has been acknowledged.
The permissions the bot has in the channel this interaction was sent from, if this interaction is sent from a guild.
Optional
applicationThe application this interaction is for.
The ID of the application this interaction is for.
The ID of the channel this interaction was sent from.
The data associated with the interaction.
The id of the guild this interaction was sent from, if applicable.
The preferred locale of the guild this interaction was sent from, if applicable.
Optional
guildThe partial guild this interaction was sent from, if applicable.
The locale of the invoking user.
The member associated with the invoking user, if this interaction is sent from a guild.
The permissions of the member associated with the invoking user, if this interaction is sent from a guild.
The message the interaction is from.
The token of this interaction.
The type of this interaction.
The user that invoked this interaction.
Read-only property, always 1
The channel this interaction was sent from.
The guild this interaction was sent from, if applicable. This will throw an error if the guild is not cached.
Create a followup message.
The options for creating the followup message.
Create a message through this interaction. This is an initial response, and more than one initial response cannot be used. Use createFollowup.
You cannot attach files in an initial response. Defer the interaction, then use createFollowup.
The options for the message.
Edit a followup message.
The ID of the message.
The options for editing the followup message.
Edit the original interaction response.
The options for editing the original message.
Edit the message this interaction is from. If this interaction has already been acknowledged, use editOriginal
.
The options for editing the message.
Get a followup message.
The ID of the message.
Get the original interaction response.
Whether this interaction belongs to a cached guild channel. The only difference on using this method over a simple if statement is to easily update all the interaction properties typing definitions based on the channel it belongs to.
Whether this interaction belongs to a private channel (PrivateChannel or uncached). The only difference on using this method over a simple if statement is to easily update all the interaction properties typing definitions based on the channel it belongs to.
Whether this interaction is a button interaction. The only difference on using this method over a simple if statement is to easily update all the interaction properties typing definitions based on the component type.
Whether this interaction is a select menu interaction. The only difference on using this method over a simple if statement is to easily update all the interaction properties typing definitions based on the component type.
Represents a component interaction.