Search Results for

    Show / Hide Table of Contents

    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
    Implements
    IDiscordEmbedVideo
    System.IEquatable<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 Source

    DiscordEmbedVideo()

    Initializes a new DiscordEmbedVideo

    Declaration
    public DiscordEmbedVideo()
    | Improve this Doc View Source

    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 Source

    Height

    Height of video.

    Declaration
    public int? Height { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>
    | Improve this Doc View Source

    ProxyUrl

    A proxied url of the video.

    Declaration
    public string ProxyUrl { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Url

    Source url of video.

    Declaration
    public string Url { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Width

    Width of video.

    Declaration
    public int? Width { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    Methods

    | Improve this Doc View Source

    ToDataModel()

    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

    IDiscordEmbedVideo
    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX