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
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
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
Equals(object)
Determines whether the specified object is equal to the current EmbedImage.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current EmbedImage
Returns
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
Operators
operator ==(EmbedImage?, EmbedImage?)
public static bool operator ==(EmbedImage? left, EmbedImage? right)
Parameters
left
EmbedImage?right
EmbedImage?
Returns
operator !=(EmbedImage?, EmbedImage?)
public static bool operator !=(EmbedImage? left, EmbedImage? right)
Parameters
left
EmbedImage?right
EmbedImage?