diskord
5.2.0
common
diskord-core
/
com.jessecorbett.diskord.api.common
/
Attachment
Attachment
@
Serializable
data
class
Attachment
(
val
id
:
String
,
val
fileName
:
String
,
val
contentType
:
String
?
=
null
,
val
sizeInBytes
:
Int
,
val
url
:
String
,
val
proxiedUrl
:
String
,
val
imageHeight
:
Int
?
=
null
,
val
imageWidth
:
Int
?
=
null
)
(
source
)
Members
Constructors
Attachment
Link copied to clipboard
constructor
(
id
:
String
,
fileName
:
String
,
contentType
:
String
?
=
null
,
sizeInBytes
:
Int
,
url
:
String
,
proxiedUrl
:
String
,
imageHeight
:
Int
?
=
null
,
imageWidth
:
Int
?
=
null
)
Properties
content
Type
Link copied to clipboard
@
SerialName
(
value
=
"content_type"
)
val
contentType
:
String
?
=
null
file
Name
Link copied to clipboard
@
SerialName
(
value
=
"filename"
)
val
fileName
:
String
id
Link copied to clipboard
@
SerialName
(
value
=
"id"
)
val
id
:
String
image
Height
Link copied to clipboard
@
SerialName
(
value
=
"height"
)
val
imageHeight
:
Int
?
=
null
image
Width
Link copied to clipboard
@
SerialName
(
value
=
"width"
)
val
imageWidth
:
Int
?
=
null
proxied
Url
Link copied to clipboard
@
SerialName
(
value
=
"proxy_url"
)
val
proxiedUrl
:
String
size
In
Bytes
Link copied to clipboard
@
SerialName
(
value
=
"size"
)
val
sizeInBytes
:
Int
url
Link copied to clipboard
@
SerialName
(
value
=
"url"
)
val
url
:
String