IAttachment class abstract

Implemented types

Constructors

IAttachment()

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBuilder() AttachmentMetadataBuilder
Returns instance of Builder with current data
inherited
toString() String
A string representation of this object.
inherited

Operators

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