Table of Contents

Struct EmbedImage

Namespace
Discord
Assembly
Discord.Net.Core.dll

An image for an Embed.

public struct EmbedImage
Inherited Members

Properties

Height

Gets the height of this image.

public readonly int? Height { get; }

Property Value

int?

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

ProxyUrl

Gets a proxied URL of this image.

public readonly string ProxyUrl { get; }

Property Value

string

A string containing the proxied URL of this image.

Url

Gets the URL of the image.

public readonly string Url { get; }

Property Value

string

A string containing the URL of the image.

Width

Gets the width of this image.

public readonly int? Width { get; }

Property Value

int?

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

Methods

Equals(EmbedImage?)

Determines whether the specified EmbedImage is equal to the current EmbedImage

public bool Equals(EmbedImage? embedImage)

Parameters

embedImage EmbedImage?

The EmbedImage to compare with the current EmbedImage

Returns

bool

Equals(object)

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

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current EmbedImage

Returns

bool

Remarks

If the object passes is an EmbedImage, Equals(EmbedImage?) 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 ==(EmbedImage?, EmbedImage?)

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

Parameters

left EmbedImage?
right EmbedImage?

Returns

bool

operator !=(EmbedImage?, EmbedImage?)

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

Parameters

left EmbedImage?
right EmbedImage?

Returns

bool