Class DiscordEmbedImage
Represents a discord Embed Image Structure API model. Docs: https://discord.com/developers/docs/resources/channel#embed-object-embed-image-structure
Inheritance
System.Object
DiscordEmbedImage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Rest.Models.Embed
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordEmbedImage : IDiscordEmbedImage, IEquatable<DiscordEmbedImage>
Constructors
| Improve this Doc View SourceDiscordEmbedImage()
Initializes a new DiscordEmbedImage
Declaration
public DiscordEmbedImage()
DiscordEmbedImage(DiscordEmbedImageData)
Initializes a new DiscordEmbedImage
Declaration
public DiscordEmbedImage(DiscordEmbedImageData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordEmbedImageData | data | The data needed to create the DiscordEmbedImage. |
Properties
| Improve this Doc View SourceHeight
Height of image.
Declaration
public int? Height { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ProxyUrl
A proxied url of the image.
Declaration
public string ProxyUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Url
Source url of image (only supports http(s) and attachments).
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Width
Width of image.
Declaration
public int? Width { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
public DiscordEmbedImageData ToDataModel()
Returns
Type | Description |
---|---|
DiscordEmbedImageData | The converted DiscordEmbedImageData. |
Implements
System.IEquatable<T>