Class Thumbnail
A thumbnail for the webhook. This is displayed in the top right corner of the embed. See the Thumbnail object structure for more information.
Inheritance
System.Object
Thumbnail
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dishooks.Embeds
Assembly: cs.temp.dll.dll
Syntax
public class Thumbnail
Constructors
Thumbnail(Attachment)
Create a thumbnail for the Embed using an Attachment. Note that the attachment needs to be added to the Webhook as well.
Declaration
public Thumbnail(Attachment attachment)
Parameters
Type | Name | Description |
---|---|---|
Attachment | attachment | The Attachment to use. |
Thumbnail(String)
Create a thumbnail for the Embed using a URL.
Declaration
public Thumbnail(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL to use. |
Thumbnail(String, Int32, Int32)
Declaration
public Thumbnail(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 attachment URLs).
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> |