From cec323e7a7b632ec2a290b0c8fde62f3db5a841f Mon Sep 17 00:00:00 2001 From: panley01 <52224740+panley01@users.noreply.github.com> Date: Wed, 5 Jul 2023 20:53:33 +0100 Subject: [PATCH 1/3] Document attachment flags Documents the new attachment flags field and the flag `1 << 2` for the remix feature. I am not aware of any other flags on attachments. --- docs/resources/Channel.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/resources/Channel.md b/docs/resources/Channel.md index 0d5e6a27d6..99d039a4ae 100644 --- a/docs/resources/Channel.md +++ b/docs/resources/Channel.md @@ -758,9 +758,16 @@ Embeds are deduplicated by URL. If a message contains multiple embeds with the | ephemeral? \* | boolean | whether this attachment is ephemeral | | duration_secs? | float | the duration of the audio file (currently for voice messages) | | waveform? | string | base64 encoded bytearray representing a sampled waveform (currently for voice messages) | +| flags? | integer | [arrachment flags](#DOCS_RESOURCES_CHANNEL/attachment-object-attachment-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) | \* Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists. +###### Attachment Flags + +| Flag | Value | Description | +| -------------------------------------- | ------ | --------------------------------------------------------------------------------- | +| REMIX | 1 << 2 | this attachment has been edited using the remix feature on mobile | + ### Channel Mention Object ###### Channel Mention Structure From 59c93c162161d41c517dbceb9bcfec0af74dd860 Mon Sep 17 00:00:00 2001 From: panley01 <52224740+panley01@users.noreply.github.com> Date: Wed, 5 Jul 2023 21:20:30 +0100 Subject: [PATCH 2/3] Update docs/resources/Channel.md Co-authored-by: Lala Sabathil --- docs/resources/Channel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/Channel.md b/docs/resources/Channel.md index 99d039a4ae..113cadcf95 100644 --- a/docs/resources/Channel.md +++ b/docs/resources/Channel.md @@ -758,7 +758,7 @@ Embeds are deduplicated by URL. If a message contains multiple embeds with the | ephemeral? \* | boolean | whether this attachment is ephemeral | | duration_secs? | float | the duration of the audio file (currently for voice messages) | | waveform? | string | base64 encoded bytearray representing a sampled waveform (currently for voice messages) | -| flags? | integer | [arrachment flags](#DOCS_RESOURCES_CHANNEL/attachment-object-attachment-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) | +| flags? | integer | [attachment flags](#DOCS_RESOURCES_CHANNEL/attachment-object-attachment-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) | \* Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists. From b1f9c7fa8b036b1bc8333cfe6111b32ebeebc066 Mon Sep 17 00:00:00 2001 From: panley01 <52224740+panley01@users.noreply.github.com> Date: Wed, 5 Jul 2023 23:41:52 +0100 Subject: [PATCH 3/3] Update docs/resources/Channel.md Co-authored-by: advaith --- docs/resources/Channel.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/resources/Channel.md b/docs/resources/Channel.md index 113cadcf95..3cbe1bd62e 100644 --- a/docs/resources/Channel.md +++ b/docs/resources/Channel.md @@ -764,9 +764,9 @@ Embeds are deduplicated by URL. If a message contains multiple embeds with the ###### Attachment Flags -| Flag | Value | Description | -| -------------------------------------- | ------ | --------------------------------------------------------------------------------- | -| REMIX | 1 << 2 | this attachment has been edited using the remix feature on mobile | +| Flag | Value | Description | +| -------- | ------ | ----------------------------------------------------------------- | +| IS_REMIX | 1 << 2 | this attachment has been edited using the remix feature on mobile | ### Channel Mention Object