Skip to content

Commit

Permalink
Document attachment flags (discord#6272)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored and shaydewael committed May 14, 2024
1 parent 2633ad3 commit a865e48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/resources/Channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | [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.

###### Attachment Flags

| Flag | Value | Description |
| -------- | ------ | ----------------------------------------------------------------- |
| IS_REMIX | 1 << 2 | this attachment has been edited using the remix feature on mobile |

### Channel Mention Object

###### Channel Mention Structure
Expand Down

0 comments on commit a865e48

Please sign in to comment.