Table of Contents

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

int?

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

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

int?

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

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

bool

Equals(object)

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

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current EmbedThumbnail

Returns

bool

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

string

A string that resolves to Url.

Operators

operator ==(EmbedThumbnail?, EmbedThumbnail?)

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

Parameters

left EmbedThumbnail?
right EmbedThumbnail?

Returns

bool

operator !=(EmbedThumbnail?, EmbedThumbnail?)

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

Parameters

left EmbedThumbnail?
right EmbedThumbnail?

Returns

bool