Table of Contents

Class ComponentMedia

Namespace
NetCord
Assembly
NetCord.dll
public class ComponentMedia : IJsonModel<JsonComponentMedia>
Inheritance
ComponentMedia
Implements
Inherited Members

Constructors

ComponentMedia(JsonComponentMedia)

public ComponentMedia(JsonComponentMedia jsonModel)

Parameters

jsonModel JsonComponentMedia

Properties

AttachmentId

The ID of the uploaded attachment. Only present if the media item was uploaded as an attachment.

public ulong? AttachmentId { get; }

Property Value

ulong?

ContentType

The media item's media type.

public string? ContentType { get; }

Property Value

string

Height

Height of the media item.

public int? Height { get; }

Property Value

int?

LoadingState

Loading state of the media item.

public ComponentMediaLoadingState? LoadingState { get; }

Property Value

ComponentMediaLoadingState?

ProxyUrl

A proxied URL of the media item.

public string? ProxyUrl { get; }

Property Value

string

Url

Source URL of the media item.

public string Url { get; }

Property Value

string

Width

Width of the media item.

public int? Width { get; }

Property Value

int?