Attachment class Null safety

A message attachment.

Inheritance

Properties

createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
ephemeral bool
whether this attachment is ephemeral Note: Ephemeral attachments will automatically be removed after a set period of time. Ephemeral attachments on messages are guaranteed to be available as long as the message itself exists.
late, final
filename String
The attachment's filename.
late, final
hashCode int
The hash code for this object. [...]
read-only, override
height int?
The attachment's height, if an image.
late, final
id Snowflake
ID of entity as Snowflake
final, inherited
isSpoiler bool
Indicates if attachment is spoiler
read-only
proxyUrl String?
The attachment's proxy URL.
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int
The attachment's file size.
late, final
url String
The attachment's URL.
late, final
width int?
The attachment's width, if an image.
late, final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override