Skip to content

Commit e6cf4a9

Browse files
authored
[voice messages] include disclaimer about content-type for voice message waveform/duration_secs (discord#7161)
1 parent 081191f commit e6cf4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/resources/Message.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Voice messages are messages with the `IS_VOICE_MESSAGE` flag. They have the foll
363363

364364
- They cannot be edited.
365365
- Only a single audio attachment is allowed. No content, stickers, etc...
366-
- The [attachment](#DOCS_RESOURCES_MESSAGE/attachment-object) has additional fields: `duration_secs` and `waveform`.
366+
- The [attachment](#DOCS_RESOURCES_MESSAGE/attachment-object) has additional fields: `duration_secs` and `waveform`. The `Content-Type` of the attachment must begin with `audio/` to respect these fields.
367367

368368
The `waveform` is intended to be a preview of the entire voice message, with 1 byte per datapoint encoded in base64. Clients sample the recording at most
369369
once per 100 milliseconds, but will downsample so that no more than 256 datapoints are in the waveform.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy