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
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
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
Equals(object)
Determines whether the specified object is equal to the current EmbedVideo.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current EmbedVideo
Returns
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
Operators
operator ==(EmbedVideo?, EmbedVideo?)
public static bool operator ==(EmbedVideo? left, EmbedVideo? right)
Parameters
left
EmbedVideo?right
EmbedVideo?
Returns
operator !=(EmbedVideo?, EmbedVideo?)
public static bool operator !=(EmbedVideo? left, EmbedVideo? right)
Parameters
left
EmbedVideo?right
EmbedVideo?