diff --git a/packages/discord.js/src/structures/Message.js b/packages/discord.js/src/structures/Message.js index 0fe2f762e3ac8..276a2cb340a82 100644 --- a/packages/discord.js/src/structures/Message.js +++ b/packages/discord.js/src/structures/Message.js @@ -426,6 +426,7 @@ class Message extends Base { /** * Partial data of the interaction that this message is a reply to * @type {?MessageInteraction} + * @deprecated Use {@link Message#interactionMetadata} instead. */ this.interaction = { id: data.interaction.id, diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index a0c3b64900b1d..cc3f0e454fc60 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -6416,6 +6416,7 @@ export interface MessageInteractionMetadata { triggeringInteractionMetadata: MessageInteractionMetadata | null; } +/** @deprecated Use {@link MessageInteractionMetadata} instead. */ export interface MessageInteraction { id: Snowflake; type: InteractionType;