Creates a new Attachment instance.
The client instance.
The raw data for the attachment from the API.
Optionaldeleted?: boolean | nullOptionalmessage_id?: string | nullOptionalobject_id?: string | nullOptionalreported?: boolean | nullOptionalserver_id?: string | nullFormat: int
Optionaluser_id?: string | nullReadonlyclientThe client instance.
The filename of the attachment.
The unique identifier for the object.
Metadata associated with the attachment (e.g., dimensions for images).
Format: uint
Format: uint
Format: uint
Format: uint
The size of the attachment in bytes.
The MIME type of the attachment (e.g., image/png, application/pdf).
Creates a deep clone of the object.
A clone of the object.
Updates the object with new data and returns a clone of the object.
The data to update the object with.
Optionalclear: string[]Fields to clear in the object.
A clone of the updated object.
Compares this object with another to determine if they are equal.
Optionalobj: Attachment | nullThe object to compare with.
true if the objects are equal, otherwise false.
Represents an attachment, such as a file or image, in a message or channel.