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
- Alphabetic
- By Inheritance
Inherited
- Attachment
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- 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
- val contentType: Option[String]
- val description: Option[String]
- val ephemeral: Option[Boolean]
- val filename: String
- val height: Option[Int]
- val id: SnowflakeType[Attachment]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val proxyUrl: String
- val size: Int
- val url: String
- val width: Option[Int]