Nostrum.Struct.Message.Attachment (nostrum v0.11.0-dev)
View SourceStruct representing a Discord message attachment.
Summary
Types
The attachment’s media type
Description for the file (max 1024 characters)
The duration of the audio file in seconds (currently for voice messages)
Whether this attachment is ephemeral
Name of attached file
Attachment flags combined as a bitfield
Height of the file (if image)
Attachment id
Proxy url of the file
Size of the file in bytes
The title of the file
Source url of the file
Base64 encoded bytearray representing a sampled waveform (currently for voice messages)
Width of the file (if image)
Types
@type content_type() :: String.t() | nil
The attachment’s media type
@type description() :: String.t() | nil
Description for the file (max 1024 characters)
@type duration_secs() :: float() | nil
The duration of the audio file in seconds (currently for voice messages)
@type ephemeral() :: boolean() | nil
Whether this attachment is ephemeral
@type filename() :: String.t()
Name of attached file
@type flags() :: integer() | nil
Attachment flags combined as a bitfield
@type height() :: integer() | nil
Height of the file (if image)
@type id() :: Nostrum.Snowflake.t()
Attachment id
@type proxy_url() :: String.t()
Proxy url of the file
@type size() :: integer()
Size of the file in bytes
@type t() :: %Nostrum.Struct.Message.Attachment{ content_type: content_type(), description: description(), duration_secs: duration_secs(), ephemeral: ephemeral(), filename: filename(), flags: flags(), height: height(), id: id(), proxy_url: proxy_url(), size: size(), title: title(), url: url(), waveform: waveform(), width: width() }
@type title() :: String.t() | nil
The title of the file
@type url() :: String.t()
Source url of the file
@type waveform() :: String.t() | nil
Base64 encoded bytearray representing a sampled waveform (currently for voice messages)
@type width() :: integer() | nil
Width of the file (if image)