diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index 72793908..d4b0f7ad 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 call associated with the message + */ + call?: APIMessageCall; } /** @@ -879,6 +883,20 @@ export enum MessageFlags { IsVoiceMessage = 1 << 13, } +/** + * https://discord.com/developers/docs/resources/channel#message-call-object-message-call-object-structure + */ +export interface APIMessageCall { + /** + * Array of user ids that participated in the call + */ + participants: Snowflake[]; + /** + * ISO8601 timestamp when the call ended + */ + ended_timestamp?: string | null; +} + /** * https://discord.com/developers/docs/resources/channel#role-subscription-data-object-role-subscription-data-object-structure */ diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index 27b8d7cb..04dd3a8c 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 call associated with the message + */ + call?: APIMessageCall; } /** @@ -864,6 +868,20 @@ export enum MessageFlags { IsVoiceMessage = 1 << 13, } +/** + * https://discord.com/developers/docs/resources/channel#message-call-object-message-call-object-structure + */ +export interface APIMessageCall { + /** + * Array of user ids that participated in the call + */ + participants: Snowflake[]; + /** + * ISO8601 timestamp when the call ended + */ + ended_timestamp?: string | null; +} + /** * https://discord.com/developers/docs/resources/channel#followed-channel-object */ diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index 5d2b41b8..56331703 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 call associated with the message + */ + call?: APIMessageCall; } /** @@ -879,6 +883,20 @@ export enum MessageFlags { IsVoiceMessage = 1 << 13, } +/** + * https://discord.com/developers/docs/resources/channel#message-call-object-message-call-object-structure + */ +export interface APIMessageCall { + /** + * Array of user ids that participated in the call + */ + participants: Snowflake[]; + /** + * ISO8601 timestamp when the call ended + */ + ended_timestamp?: string | null; +} + /** * https://discord.com/developers/docs/resources/channel#role-subscription-data-object-role-subscription-data-object-structure */ diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index c879991c..9066852e 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 call associated with the message + */ + call?: APIMessageCall; } /** @@ -864,6 +868,20 @@ export enum MessageFlags { IsVoiceMessage = 1 << 13, } +/** + * https://discord.com/developers/docs/resources/channel#message-call-object-message-call-object-structure + */ +export interface APIMessageCall { + /** + * Array of user ids that participated in the call + */ + participants: Snowflake[]; + /** + * ISO8601 timestamp when the call ended + */ + ended_timestamp?: string | null; +} + /** * https://discord.com/developers/docs/resources/channel#followed-channel-object */