Table of Contents

Struct EmbedVideo

Namespace
Discord
Assembly
Discord.Net.Core.dll

A video featured in an Embed.

public struct EmbedVideo
Inherited Members

Properties

Height

Gets the height of the video.

public readonly int? Height { get; }

Property Value

int?

A int representing the height of this video if it can be retrieved; otherwise null.

Url

Gets the URL of the video.

public readonly string Url { get; }

Property Value

string

A string containing the URL of the image.

Width

Gets the weight of the video.

public readonly int? Width { get; }

Property Value

int?

A int representing the width of this video if it can be retrieved; otherwise null.

Methods

Equals(EmbedVideo?)

Determines whether the specified EmbedVideo is equal to the current EmbedVideo

public bool Equals(EmbedVideo? embedVideo)

Parameters

embedVideo EmbedVideo?

The EmbedVideo to compare with the current EmbedVideo

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current EmbedVideo.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current EmbedVideo

Returns

bool

Remarks

If the object passes is an EmbedVideo, Equals(EmbedVideo?) will be called to compare the 2 instances

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Gets the URL of the video.

public override string ToString()

Returns

string

A string that resolves to Url.

Operators

operator ==(EmbedVideo?, EmbedVideo?)

public static bool operator ==(EmbedVideo? left, EmbedVideo? right)

Parameters

left EmbedVideo?
right EmbedVideo?

Returns

bool

operator !=(EmbedVideo?, EmbedVideo?)

public static bool operator !=(EmbedVideo? left, EmbedVideo? right)

Parameters

left EmbedVideo?
right EmbedVideo?

Returns

bool