Skip to content

Commit a865e48

Browse files
panley01Lulalabyadvaith1
authored andcommitted
Document attachment flags (discord#6272)
* 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. * Update docs/resources/Channel.md Co-authored-by: Lala Sabathil <[email protected]> * Update docs/resources/Channel.md Co-authored-by: advaith <[email protected]> --------- Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: advaith <[email protected]>
1 parent 2633ad3 commit a865e48

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/resources/Channel.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,16 @@ Embeds are deduplicated by URL. If a message contains multiple embeds with the
758758
| ephemeral? \* | boolean | whether this attachment is ephemeral |
759759
| duration_secs? | float | the duration of the audio file (currently for voice messages) |
760760
| waveform? | string | base64 encoded bytearray representing a sampled waveform (currently for voice messages) |
761+
| flags? | integer | [attachment flags](#DOCS_RESOURCES_CHANNEL/attachment-object-attachment-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) |
761762

762763
\* 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.
763764

765+
###### Attachment Flags
766+
767+
| Flag | Value | Description |
768+
| -------- | ------ | ----------------------------------------------------------------- |
769+
| IS_REMIX | 1 << 2 | this attachment has been edited using the remix feature on mobile |
770+
764771
### Channel Mention Object
765772

766773
###### Channel Mention Structure

0 commit comments

Comments
 (0)