Struct EmbedThumbnail
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
A thumbnail featured in an Embed.
public struct EmbedThumbnail
- Inherited Members
Properties
Height
Gets the height of this thumbnail.
public readonly int? Height { get; }
Property Value
ProxyUrl
Gets a proxied URL of this thumbnail.
public readonly string ProxyUrl { get; }
Property Value
- string
A string containing the proxied URL of this thumbnail.
Url
Gets the URL of the thumbnail.
public readonly string Url { get; }
Property Value
- string
A string containing the URL of the thumbnail.
Width
Gets the width of this thumbnail.
public readonly int? Width { get; }
Property Value
Methods
Equals(EmbedThumbnail?)
Determines whether the specified EmbedThumbnail is equal to the current EmbedThumbnail
public bool Equals(EmbedThumbnail? embedThumbnail)
Parameters
embedThumbnail
EmbedThumbnail?The EmbedThumbnail to compare with the current EmbedThumbnail
Returns
Equals(object)
Determines whether the specified object is equal to the current EmbedThumbnail.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current EmbedThumbnail
Returns
Remarks
If the object passes is an EmbedThumbnail, Equals(EmbedThumbnail?) 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 thumbnail.
public override string ToString()
Returns
Operators
operator ==(EmbedThumbnail?, EmbedThumbnail?)
public static bool operator ==(EmbedThumbnail? left, EmbedThumbnail? right)
Parameters
left
EmbedThumbnail?right
EmbedThumbnail?
Returns
operator !=(EmbedThumbnail?, EmbedThumbnail?)
public static bool operator !=(EmbedThumbnail? left, EmbedThumbnail? right)
Parameters
left
EmbedThumbnail?right
EmbedThumbnail?