Skip to main content

MessageInteractionMetadata

Documentation


Documentation / @discordeno/bot / MessageInteractionMetadata

Interface: MessageInteractionMetadata

Defined in: transformers/types.ts:1442

Properties

authorizingIntegrationOwners

authorizingIntegrationOwners: Partial<Record<DiscordApplicationIntegrationType, bigint>>

Defined in: transformers/types.ts:1450

IDs for installation context(s) related to an interaction


id

id: bigint

Defined in: transformers/types.ts:1444

Id of the interaction


interactedMessageId?

optional interactedMessageId?: bigint

Defined in: transformers/types.ts:1473

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

Remarks

Only present when the interaction metadata is about a message component


originalResponseMessageId?

optional originalResponseMessageId?: bigint

Defined in: transformers/types.ts:1452

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


targetMessageId?

optional targetMessageId?: bigint

Defined in: transformers/types.ts:1466

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.

Remarks

Only present when the interaction metadata is about an application command


targetUser?

optional targetUser?: User

Defined in: transformers/types.ts:1459

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

Remarks

Only present when the interaction metadata is about an application command


triggeringInteractionMetadata?

optional triggeringInteractionMetadata?: MessageInteractionMetadata

Defined in: transformers/types.ts:1480

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

Remarks

Only present when the interaction metadata is about a modal submit


type

type: InteractionTypes

Defined in: transformers/types.ts:1446

The type of interaction


user

user: User

Defined in: transformers/types.ts:1448

User who triggered the interaction