Attachment class
Attachment structure
For the attachments array in Message Create/Edit requests, only the id is required.
https://discord.com/developers/docs/resources/channel#attachment-object-attachment-structure
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
Properties
- contentType → String?
-
the attachment's media type
final
- description → String?
-
description for the file
final
- ephemeral → bool?
-
whether this attachment is ephemeral
final
- filename → String
-
name of the file attached
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
height of the file (if image)
final
- id → String
-
attachment id
final
- proxyUrl → String?
-
a proxied url of the file
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int?
-
size of the file in bytes
final
- url → String?
-
source url of the file
final
- width → int?
-
width of the file (if image)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited