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