mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
docs(Message): mark interaction as deprecated (#10481)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -426,6 +426,7 @@ class Message extends Base {
|
|||||||
/**
|
/**
|
||||||
* Partial data of the interaction that this message is a reply to
|
* Partial data of the interaction that this message is a reply to
|
||||||
* @type {?MessageInteraction}
|
* @type {?MessageInteraction}
|
||||||
|
* @deprecated Use {@link Message#interactionMetadata} instead.
|
||||||
*/
|
*/
|
||||||
this.interaction = {
|
this.interaction = {
|
||||||
id: data.interaction.id,
|
id: data.interaction.id,
|
||||||
|
|||||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -6416,6 +6416,7 @@ export interface MessageInteractionMetadata {
|
|||||||
triggeringInteractionMetadata: MessageInteractionMetadata | null;
|
triggeringInteractionMetadata: MessageInteractionMetadata | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated Use {@link MessageInteractionMetadata} instead. */
|
||||||
export interface MessageInteraction {
|
export interface MessageInteraction {
|
||||||
id: Snowflake;
|
id: Snowflake;
|
||||||
type: InteractionType;
|
type: InteractionType;
|
||||||
|
|||||||
Reference in New Issue
Block a user