Skip to main content

Interface IAttachment

Represents a message attachment found in a Discord.IUserMessage.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public interface IAttachment

Properties​

Id​

Gets the ID of this attachment.

View Source​
Declaration
ulong Id { get; }

Filename​

Gets the filename of this attachment.

View Source​
Declaration
string Filename { get; }

Url​

Gets the URL of this attachment.

View Source​
Declaration
string Url { get; }

ProxyUrl​

Gets a proxied URL of this attachment.

View Source​
Declaration
string ProxyUrl { get; }

Size​

Gets the file size of this attachment.

View Source​
Declaration
int Size { get; }

Height​

Gets the height of this attachment.

View Source​
Declaration
int? Height { get; }

Width​

Gets the width of this attachment.

View Source​
Declaration
int? Width { get; }

Ephemeral​

Gets whether or not this attachment is ephemeral.

View Source​
Declaration
bool Ephemeral { get; }

Extension Methods​