Table of Contents

Class DiscordAttachment

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents an attachment for a message.

public class DiscordAttachment : NullableSnowflakeObject
Inheritance
DiscordAttachment
Inherited Members

Properties

Description

Gets the description of the file.

DurationSecs

The duration in seconds of the audio file (currently only for voice messages).

Only presented when the message flags include IsVoiceMessage and for the attached voice message.

Ephemeral

Gets whether this attachment is ephemeral. 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.

FileSize

Gets the file size in bytes.

Filename

Gets the name of the file.

Flags

Gets the attachment flags.

Height

Gets the height. Applicable only if the attachment is an image.

MediaType

Gets the media, or MIME, type of the file.

ProxyUrl

Gets the proxied URL of the file.

Url

Gets the URL of the file.

WaveForm

The base64 encoded byte-array representing a sampled waveform (currently only for voice messages).

Only presented when the message flags include IsVoiceMessage and for the attached voice message.

Width

Gets the width. Applicable only if the attachment is an image.