DiscordInteractionMetadata

data class DiscordInteractionMetadata(val id: Snowflake, val type: InteractionType, val user: DiscordUser, val authorizingIntegrationOwners: IntegrationOwners, val originalResponseMessageId: OptionalSnowflake = OptionalSnowflake.Missing, val interactedMessageId: OptionalSnowflake = OptionalSnowflake.Missing, val triggeringInteractionMetadata: Optional<DiscordInteractionMetadata> = Optional.Missing(), val targetUser: Optional<DiscordUser> = Optional.Missing(), val targetMessageId: OptionalSnowflake = OptionalSnowflake.Missing)(source)

Metadata about the interaction, including the source of the interaction and relevant server and user IDs.

Constructors

Link copied to clipboard
constructor(id: Snowflake, type: InteractionType, user: DiscordUser, authorizingIntegrationOwners: IntegrationOwners, originalResponseMessageId: OptionalSnowflake = OptionalSnowflake.Missing, interactedMessageId: OptionalSnowflake = OptionalSnowflake.Missing, triggeringInteractionMetadata: Optional<DiscordInteractionMetadata> = Optional.Missing(), targetUser: Optional<DiscordUser> = Optional.Missing(), targetMessageId: OptionalSnowflake = OptionalSnowflake.Missing)

Properties

Link copied to clipboard
@SerialName(value = "authorizing_integration_owners")
val authorizingIntegrationOwners: IntegrationOwners

IDs for installation context(s) related to an interaction

Link copied to clipboard

The ID of the interaction.

Link copied to clipboard
@SerialName(value = "interacted_message_id")
val interactedMessageId: OptionalSnowflake

ID of the message that contained interactive component, present only on messages created from component interactions

Link copied to clipboard
@SerialName(value = "original_response_message_id")
val originalResponseMessageId: OptionalSnowflake

ID of the original response message, present only on follow-up messages

Link copied to clipboard
@SerialName(value = "target_message_id")
val targetMessageId: OptionalSnowflake

The ID of the message the command was run on, present only on message command interactions. The original response message will also have message_reference and referenced_message pointing to this message

Link copied to clipboard
@SerialName(value = "target_user")
val targetUser: Optional<DiscordUser>

The user the command was run on, present only on user command interactions

Link copied to clipboard
@SerialName(value = "triggering_interaction_metadata")
val triggeringInteractionMetadata: Optional<DiscordInteractionMetadata>

Metadata for the interaction that was used to open the modal, present only on modal submit interactions

Link copied to clipboard

The type of the interaction.

Link copied to clipboard

The user associated with the interaction.