Class Attachment
Represents a message attachment found in a Discord.IUserMessage.
Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class Attachment : IAttachment
Properties​
Id​
Gets the ID of this attachment.
View Source​
Declaration
public ulong Id { get; }
Filename​
Gets the filename of this attachment.
View Source​
Declaration
public string Filename { get; }
Url​
Gets the URL of this attachment.
View Source​
Declaration
public string Url { get; }
ProxyUrl​
Gets a proxied URL of this attachment.
View Source​
Declaration
public string ProxyUrl { get; }
Size​
Gets the file size of this attachment.
View Source​
Declaration
public int Size { get; }
Height​
Gets the height of this attachment.
View Source​
Declaration
public int? Height { get; }
Width​
Gets the width of this attachment.
View Source​
Declaration
public int? Width { get; }
Ephemeral​
Gets whether or not this attachment is ephemeral.
View Source​
Declaration
public bool Ephemeral { get; }
Methods​
ToString()​
Returns the filename of this attachment.
View Source​
Declaration
public override string ToString()
Returns​
System.String
:
A string containing the filename of this attachment.