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
jsonModelJsonComponentMedia
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
ContentType
The media item's media type.
public string? ContentType { get; }
Property Value
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
ProxyUrl
A proxied URL of the media item.
public string? ProxyUrl { get; }
Property Value
Url
Source URL of the media item.
public string Url { get; }
Property Value
Width
Width of the media item.
public int? Width { get; }
Property Value
- int?