Class DiscordEmbedVideo
Represents a discord Embed Video Structure API model. Docs: https://discord.com/developers/docs/resources/channel#embed-object-embed-video-structure
Inheritance
System.Object
DiscordEmbedVideo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Rest.Models.Embed
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordEmbedVideo : IDiscordEmbedVideo, IEquatable<DiscordEmbedVideo>
Constructors
| Improve this Doc View SourceDiscordEmbedVideo()
Initializes a new DiscordEmbedVideo
Declaration
public DiscordEmbedVideo()
DiscordEmbedVideo(DiscordEmbedVideoData)
Initializes a new DiscordEmbedVideo
Declaration
public DiscordEmbedVideo(DiscordEmbedVideoData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordEmbedVideoData | data | The data needed to create the DiscordEmbedVideo. |
Properties
| Improve this Doc View SourceHeight
Height of video.
Declaration
public int? Height { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ProxyUrl
A proxied url of the video.
Declaration
public string ProxyUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Url
Source url of video.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Width
Width of video.
Declaration
public int? Width { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
public DiscordEmbedVideoData ToDataModel()
Returns
Type | Description |
---|---|
DiscordEmbedVideoData | The converted DiscordEmbedVideoData. |
Implements
System.IEquatable<T>