Struct EmbedVideo
A video featured in an Embed.
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public struct EmbedVideo
Properties
| Improve this Doc View SourceHeight
Gets the height of the video.
Declaration
public readonly int? Height { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> | A |
Url
Gets the URL of the video.
Declaration
public readonly string Url { get; }
Property Value
Type | Description |
---|---|
String | A string containing the URL of the image. |
Width
Gets the weight of the video.
Declaration
public readonly int? Width { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> | A |
Methods
| Improve this Doc View SourceEquals(Nullable<EmbedVideo>)
Determines whether the specified EmbedVideo is equal to the current EmbedVideo
Declaration
public bool Equals(EmbedVideo? embedVideo)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedVideo> | embedVideo | The EmbedVideo to compare with the current EmbedVideo |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Determines whether the specified object is equal to the current EmbedVideo.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current EmbedVideo |
Returns
Type | Description |
---|---|
Boolean |
Remarks
If the object passes is an EmbedVideo, Equals(Nullable<EmbedVideo>) will be called to compare the 2 instances
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ToString()
Gets the URL of the video.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that resolves to Url. |
Operators
| Improve this Doc View SourceEquality(Nullable<EmbedVideo>, Nullable<EmbedVideo>)
Declaration
public static bool operator ==(EmbedVideo? left, EmbedVideo? right)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedVideo> | left | |
Nullable<EmbedVideo> | right |
Returns
Type | Description |
---|---|
Boolean |
Inequality(Nullable<EmbedVideo>, Nullable<EmbedVideo>)
Declaration
public static bool operator !=(EmbedVideo? left, EmbedVideo? right)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedVideo> | left | |
Nullable<EmbedVideo> | right |
Returns
Type | Description |
---|---|
Boolean |