DiscordAttachment class
Constructors
- DiscordAttachment({required DiscordSnowflake id, required String filename, String? description, String? contentType, required int size, required String url, required String proxyUrl, int? height, int? width, bool? ephemeral})
-
DiscordAttachment.fromJson(Map<
String, dynamic> json) -
factory
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 file attached
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
height of file (if image)
final
- id → DiscordSnowflake
-
attachment id
final
- proxyUrl → String
-
a proxied url of file
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
size of file in bytes
final
- url → String
-
source url of file
final
- width → int?
-
width of file (if image)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- contentTypeEntry → const String
- descriptionEntry → const String
- ephemeralEntry → const String
- filenameEntry → const String
- heightEntry → const String
- idEntry → const String
- proxyUrlEntry → const String
- sizeEntry → const String
- urlEntry → const String
- widthEntry → const String