diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index b569bb121..c6cf6adb5 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -735,6 +735,10 @@ export interface APIMessage { * See https://support-dev.discord.com/hc/articles/4404772028055 */ poll?: APIPoll; + /** + * The message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.) + */ + message_snapshots?: APIMessageSnapshot[]; /** * The call associated with the message */ @@ -810,6 +814,10 @@ export interface APIMessageActivity { * https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure */ export interface APIMessageReference { + /** + * Type of reference + */ + type?: MessageReferenceType; /** * ID of the originating message */ @@ -834,6 +842,20 @@ export enum MessageActivityType { JoinRequest = 5, } +/** + * https://discord.com/developers/docs/resources/channel#message-reference-types + */ +export enum MessageReferenceType { + /** + * A standard reference used by replies + */ + Default = 0, + /** + * Reference used to point to a message at a point in time + */ + Forward = 1, +} + /** * https://discord.com/developers/docs/resources/channel#message-object-message-flags */ @@ -1884,6 +1906,20 @@ export interface APITextInputComponent extends APIBaseComponent; diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index e9a19c725..7710b1714 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -720,6 +720,10 @@ export interface APIMessage { * See https://support-dev.discord.com/hc/articles/4404772028055 */ poll?: APIPoll; + /** + * The message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.) + */ + message_snapshots?: APIMessageSnapshot[]; /** * The call associated with the message */ @@ -795,6 +799,10 @@ export interface APIMessageActivity { * https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure */ export interface APIMessageReference { + /** + * Type of reference + */ + type?: MessageReferenceType; /** * ID of the originating message */ @@ -819,6 +827,20 @@ export enum MessageActivityType { JoinRequest = 5, } +/** + * https://discord.com/developers/docs/resources/channel#message-reference-types + */ +export enum MessageReferenceType { + /** + * A standard reference used by replies + */ + Default = 0, + /** + * Reference used to point to a message at a point in time + */ + Forward = 1, +} + /** * https://discord.com/developers/docs/resources/channel#message-object-message-flags */ @@ -1851,6 +1873,20 @@ export interface APITextInputComponent extends APIBaseComponent; diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index fddb1acf4..9856813d7 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -735,6 +735,10 @@ export interface APIMessage { * See https://support-dev.discord.com/hc/articles/4404772028055 */ poll?: APIPoll; + /** + * The message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.) + */ + message_snapshots?: APIMessageSnapshot[]; /** * The call associated with the message */ @@ -810,6 +814,10 @@ export interface APIMessageActivity { * https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure */ export interface APIMessageReference { + /** + * Type of reference + */ + type?: MessageReferenceType; /** * ID of the originating message */ @@ -834,6 +842,20 @@ export enum MessageActivityType { JoinRequest = 5, } +/** + * https://discord.com/developers/docs/resources/channel#message-reference-types + */ +export enum MessageReferenceType { + /** + * A standard reference used by replies + */ + Default = 0, + /** + * Reference used to point to a message at a point in time + */ + Forward = 1, +} + /** * https://discord.com/developers/docs/resources/channel#message-object-message-flags */ @@ -1884,6 +1906,20 @@ export interface APITextInputComponent extends APIBaseComponent; diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index e72b82568..3562ae008 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -720,6 +720,10 @@ export interface APIMessage { * See https://support-dev.discord.com/hc/articles/4404772028055 */ poll?: APIPoll; + /** + * The message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.) + */ + message_snapshots?: APIMessageSnapshot[]; /** * The call associated with the message */ @@ -795,6 +799,10 @@ export interface APIMessageActivity { * https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure */ export interface APIMessageReference { + /** + * Type of reference + */ + type?: MessageReferenceType; /** * ID of the originating message */ @@ -819,6 +827,20 @@ export enum MessageActivityType { JoinRequest = 5, } +/** + * https://discord.com/developers/docs/resources/channel#message-reference-types + */ +export enum MessageReferenceType { + /** + * A standard reference used by replies + */ + Default = 0, + /** + * Reference used to point to a message at a point in time + */ + Forward = 1, +} + /** * https://discord.com/developers/docs/resources/channel#message-object-message-flags */ @@ -1851,6 +1873,20 @@ export interface APITextInputComponent extends APIBaseComponent;