Packages

c

ackcord.data

Attachment

case class Attachment(id: SnowflakeType[Attachment], filename: String, description: Option[String], contentType: Option[String], size: Int, url: String, proxyUrl: String, height: Option[Int], width: Option[Int], ephemeral: Option[Boolean]) extends Product with Serializable

An attachment for a message

id

The id of the attachment

filename

The filename of the attachment

description

Description of the attachment

contentType

The attachment's media type

size

The file size in bytes

url

The url of the attachment

proxyUrl

The proxyUrl of the attachment

height

The height of the attachment if it's an image

width

The width of the attachment if it's an image

Source
message.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Attachment
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Attachment(id: SnowflakeType[Attachment], filename: String, description: Option[String], contentType: Option[String], size: Int, url: String, proxyUrl: String, height: Option[Int], width: Option[Int], ephemeral: Option[Boolean])

    id

    The id of the attachment

    filename

    The filename of the attachment

    description

    Description of the attachment

    contentType

    The attachment's media type

    size

    The file size in bytes

    url

    The url of the attachment

    proxyUrl

    The proxyUrl of the attachment

    height

    The height of the attachment if it's an image

    width

    The width of the attachment if it's an image

Value Members

  1. val contentType: Option[String]
  2. val description: Option[String]
  3. val ephemeral: Option[Boolean]
  4. val filename: String
  5. val height: Option[Int]
  6. val id: SnowflakeType[Attachment]
  7. def productElementNames: Iterator[String]
    Definition Classes
    Product
  8. val proxyUrl: String
  9. val size: Int
  10. val url: String
  11. val width: Option[Int]