Struct EmbedImage
An image for an Embed.
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public struct EmbedImage
Properties
| Improve this Doc View SourceHeight
Gets the height of this image.
Declaration
public readonly int? Height { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> | A |
ProxyUrl
Gets a proxied URL of this image.
Declaration
public readonly string ProxyUrl { get; }
Property Value
Type | Description |
---|---|
String | A string containing the proxied URL of this image. |
Url
Gets the URL of the image.
Declaration
public readonly string Url { get; }
Property Value
Type | Description |
---|---|
String | A string containing the URL of the image. |
Width
Gets the width of this image.
Declaration
public readonly int? Width { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> | A |
Methods
| Improve this Doc View SourceEquals(Nullable<EmbedImage>)
Determines whether the specified EmbedImage is equal to the current EmbedImage
Declaration
public bool Equals(EmbedImage? embedImage)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedImage> | embedImage | The EmbedImage to compare with the current EmbedImage |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Determines whether the specified object is equal to the current EmbedImage.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current EmbedImage |
Returns
Type | Description |
---|---|
Boolean |
Remarks
If the object passes is an EmbedImage, Equals(Nullable<EmbedImage>) 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<EmbedImage>, Nullable<EmbedImage>)
Declaration
public static bool operator ==(EmbedImage? left, EmbedImage? right)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedImage> | left | |
Nullable<EmbedImage> | right |
Returns
Type | Description |
---|---|
Boolean |
Inequality(Nullable<EmbedImage>, Nullable<EmbedImage>)
Declaration
public static bool operator !=(EmbedImage? left, EmbedImage? right)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedImage> | left | |
Nullable<EmbedImage> | right |
Returns
Type | Description |
---|---|
Boolean |