Class DiscordAttachment
An attachment in a DiscordMessage. This can be an image, video, or any other file. This is not to be confused with the Attachment class, which is used to send files in an embed.
Inheritance
System.Object
DiscordAttachment
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
Assembly: cs.temp.dll.dll
Syntax
public class DiscordAttachment
Properties
ContentType
The content type (MIME type) of the file. Content type is automatically set by Discord based on the file extension, not the file's actual content.
Declaration
public string ContentType { get; }
Property Value
Type | Description |
---|---|
System.String |
FileName
The name of the file, including extension.
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
System.String |
Height
The height of the image, in pixels.
Declaration
public int? Height { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Id
The ID of the attachment.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
ProxyUrl
The proxy url to the file.
Declaration
public string ProxyUrl { get; }
Property Value
Type | Description |
---|---|
System.String |
Size
The size of the file in bytes.
Declaration
public long Size { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Url
The url to the file.
Declaration
public string Url { get; }
Property Value
Type | Description |
---|---|
System.String |
Width
The width of the image, in pixels.
Declaration
public int? Width { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |