Table of Contents

Interface IAttachment

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a message attachment found in a IUserMessage.

public interface IAttachment

Properties

Duration

Gets the duration of the attachment.

TimeSpan? Duration { get; }

Property Value

TimeSpan?

Remarks

A timespan representing the duration of the attachment; null if the duration is unknown or not applicable.

FileType

Gets the file type of the attachment.

string? FileType { get; }

Property Value

string

A string representing the file type of the attachment; null if the file type is unknown or not applicable.

Filename

Gets the filename of this attachment.

string? Filename { get; }

Property Value

string

A string containing the full filename of this attachment.

Height

Gets the height of the attachment.

int? Height { get; }

Property Value

int?

An int representing the height of the attachment; null if the height is unknown or not applicable.

Size

Gets the file size of the attachment.

int? Size { get; }

Property Value

int?

An int representing the file size of the attachment; null if the file size is unknown or not applicable.

Type

Gets the type of the attachment.

AttachmentType Type { get; }

Property Value

AttachmentType

An AttachmentType representing the type of the attachment.

Url

Gets the URL of the attachment.

string Url { get; }

Property Value

string

A string representing the URL of the attachment.

Width

Gets the width of the attachment.

int? Width { get; }

Property Value

int?

An int representing the width of the attachment; null if the width is unknown or not applicable.