8000 Attachment part is missing attributes for voice messages and attachment flags · Issue #1223 · discord-php/DiscordPHP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Attachment part is missing attributes for voice messages and attachment flags #1223
Open
@valzargaming

Description

@valzargaming

/**
* 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0