Nostrum.Struct.Message.Attachment (nostrum v0.11.0-dev)

View Source

Struct representing a Discord message attachment.

Summary

Types

Name of attached file

Height of the file (if image)

Attachment id

Proxy url of the file

Size of the file in bytes

t()

Source url of the file

Width of the file (if image)

Types

filename()

@type filename() :: String.t()

Name of attached file

height()

@type height() :: integer() | nil

Height of the file (if image)

id()

@type id() :: Nostrum.Snowflake.t()

Attachment id

proxy_url()

@type proxy_url() :: String.t()

Proxy url of the file

size()

@type size() :: integer()

Size of the file in bytes

t()

@type t() :: %Nostrum.Struct.Message.Attachment{
  filename: filename(),
  height: height(),
  id: id(),
  proxy_url: proxy_url(),
  size: size(),
  url: url(),
  width: width()
}

url()

@type url() :: String.t()

Source url of the file

width()

@type width() :: integer() | nil

Width of the file (if image)