Skip to content

Commit c13f18e

Browse files
docs(Message): mark interaction as deprecated (#10481)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent aff772c commit c13f18e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/discord.js/src/structures/Message.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ class Message extends Base {
426426
/**
427427
* Partial data of the interaction that this message is a reply to
428428
* @type {?MessageInteraction}
429+
* @deprecated Use {@link Message#interactionMetadata} instead.
429430
*/
430431
this.interaction = {
431432
id: data.interaction.id,

packages/discord.js/typings/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6416,6 +6416,7 @@ export interface MessageInteractionMetadata {
64166416
triggeringInteractionMetadata: MessageInteractionMetadata | null;
64176417
}
64186418

6419+
/** @deprecated Use {@link MessageInteractionMetadata} instead. */
64196420
export interface MessageInteraction {
64206421
id: Snowflake;
64216422
type: InteractionType;

0 commit comments

Comments
 (0)