crux_structs v0.1.3 Crux.Structs.Attachment View Source

Represents a Discord Attachment Object

Height and width are only present for images.

Link to this section Summary

Functions

Creates a Crux.Structs.Attachment struct from raw data

Link to this section Types

Link to this type t() View Source
t() :: %Crux.Structs.Attachment{
  filename: String.t(),
  height: integer() | nil,
  id: integer(),
  proxy_url: String.t(),
  size: integer(),
  url: String.t(),
  width: integer() | nil
}

Link to this section Functions

Creates a Crux.Structs.Attachment struct from raw data.

Automatically invoked by Crux.Structs.create/2.