Class Image
An image for the webhook. This is displayed under the embed's Fields, but above the Footer. See the Image object structure for more information.
Inheritance
Inherited Members
Namespace: Dishooks.Embeds
Assembly: cs.temp.dll.dll
Syntax
public class Image
Constructors
Image(Attachment)
Create a image for an embed.
Declaration
public Image(Attachment attachment)
Parameters
Type | Name | Description |
---|---|---|
Attachment | attachment | The Attachment to use. Note that the attachment needs to be added to the Webhook as well. |
Image(String)
Create a new image for an embed.
Declaration
public Image(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL to the image to use. Only http(s) and the attachment:// protocol is supported. |
Image(String, Int32, Int32)
Declaration
public Image(string url, int height, int width)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | |
System.Int32 | height | |
System.Int32 | width |
Properties
Height
The height of the image. This can not be set by the user, and will only be displayed in DiscordMessage objects.
Declaration
public int? Height { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ProxyUrl
A proxied url of the image. This can not be set by the user, and will only be displayed in DiscordMessage objects.
Declaration
public string ProxyUrl { get; }
Property Value
Type | Description |
---|---|
System.String |
Url
The source url of image (only supports http(s) and attachments).
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Width
The width of the image. This can not be set by the user, and will only be displayed in DiscordMessage objects.
Declaration
public int? Width { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |