From 7f9a7e5b94529fbcd254ffdd1fcac1ceff62e890 Mon Sep 17 00:00:00 2001 From: Almeida Date: Mon, 17 Jul 2023 00:04:42 +0100 Subject: [PATCH] feat(APIAttachment): add `flags` (#783) --- deno/payloads/v10/channel.ts | 14 ++++++++++++++ deno/payloads/v9/channel.ts | 14 ++++++++++++++ payloads/v10/channel.ts | 14 ++++++++++++++ payloads/v9/channel.ts | 14 ++++++++++++++ 4 files changed, 56 insertions(+) diff --git a/deno/payloads/v10/channel.ts b/deno/payloads/v10/channel.ts index d8f12129..d80c980e 100644 --- a/deno/payloads/v10/channel.ts +++ b/deno/payloads/v10/channel.ts @@ -1332,6 +1332,20 @@ export interface APIAttachment { * Base64 encoded bytearray representing a sampled waveform (currently for voice messages) */ waveform?: string; + /** + * Attachment flags combined as a bitfield + */ + flags?: AttachmentFlags; +} + +/** + * https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure-attachment-flags + */ +export enum AttachmentFlags { + /** + * This attachment has been edited using the remix feature on mobile + */ + IsRemix = 1 << 2, } /** diff --git a/deno/payloads/v9/channel.ts b/deno/payloads/v9/channel.ts index 207595a0..b53a4979 100644 --- a/deno/payloads/v9/channel.ts +++ b/deno/payloads/v9/channel.ts @@ -1300,6 +1300,20 @@ export interface APIAttachment { * Base64 encoded bytearray representing a sampled waveform (currently for voice messages) */ waveform?: string; + /** + * Attachment flags combined as a bitfield + */ + flags?: AttachmentFlags; +} + +/** + * https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure-attachment-flags + */ +export enum AttachmentFlags { + /** + * This attachment has been edited using the remix feature on mobile + */ + IsRemix = 1 << 2, } /** diff --git a/payloads/v10/channel.ts b/payloads/v10/channel.ts index d946dbd8..df70a693 100644 --- a/payloads/v10/channel.ts +++ b/payloads/v10/channel.ts @@ -1332,6 +1332,20 @@ export interface APIAttachment { * Base64 encoded bytearray representing a sampled waveform (currently for voice messages) */ waveform?: string; + /** + * Attachment flags combined as a bitfield + */ + flags?: AttachmentFlags; +} + +/** + * https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure-attachment-flags + */ +export enum AttachmentFlags { + /** + * This attachment has been edited using the remix feature on mobile + */ + IsRemix = 1 << 2, } /** diff --git a/payloads/v9/channel.ts b/payloads/v9/channel.ts index b0fc82cb..e4a71854 100644 --- a/payloads/v9/channel.ts +++ b/payloads/v9/channel.ts @@ -1300,6 +1300,20 @@ export interface APIAttachment { * Base64 encoded bytearray representing a sampled waveform (currently for voice messages) */ waveform?: string; + /** + * Attachment flags combined as a bitfield + */ + flags?: AttachmentFlags; +} + +/** + * https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure-attachment-flags + */ +export enum AttachmentFlags { + /** + * This attachment has been edited using the remix feature on mobile + */ + IsRemix = 1 << 2, } /**