Attachment class

A message attachment.

Inheritance

Properties

createdAt DateTime
Gets creation timestamp included in Snowflake
no setterinherited
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.
latefinal
filename String
The attachment's filename.
latefinal
hashCode int
The hash code for this object.
no setteroverride
height int?
The attachment's height, if an image.
latefinal
id Snowflake
ID of entity as Snowflake
finalinherited
isSpoiler bool
Indicates if attachment is spoiler
no setter
proxyUrl String?
The attachment's proxy URL.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The attachment's file size.
latefinal
url String
The attachment's URL.
latefinal
width int?
The attachment's width, if an image.
latefinal

Methods

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

Operators

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