Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment part is missing attributes for voice messages and attachment flags #1223

Open
valzargaming opened this issue May 7, 2024 · 0 comments

Comments

@valzargaming
Copy link
Member

valzargaming commented May 7, 2024

/**
* A message attachment.
*
* @link https://discord.com/developers/docs/resources/channel#attachment-object
*
* @since 7.0.0
*
* @property string $id Attachment ID.
* @property string $filename Name of file attached.
* @property string|null $description Description for the file.
* @property string|null $content_type The attachment's media type.
* @property int $size Size of file in bytes.
* @property string $url Source url of file.
* @property string $proxy_url A proxied url of file.
* @property ?int|null $height Height of file (if image).
* @property ?int|null $width Width of file (if image).
* @property bool|null $ephemeral Whether this attachment is ephemeral.
*/

See https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure

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 combined as a bitfield
@valzargaming valzargaming changed the title Channel part is missing attributes for voice messages and attachment flags Attachment part is missing attributes for voice messages and attachment flags May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant