Search Results for

    Show / Hide Table of Contents

    Class Attachment

    Represents a message attachment found in a IUserMessage.

    Inheritance
    Object
    Attachment
    Implements
    IAttachment
    Namespace: Discord
    Assembly: Discord.Net.Rest.dll
    Syntax
    public class Attachment : object, IAttachment

    Properties

    | Improve this Doc View Source

    ContentType

    Declaration
    public string ContentType { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Description

    Declaration
    public string Description { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Ephemeral

    Declaration
    public bool Ephemeral { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Filename

    Declaration
    public string Filename { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Height

    Declaration
    public int? Height { get; }
    Property Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    Id

    Declaration
    public ulong Id { get; }
    Property Value
    Type Description
    UInt64
    | Improve this Doc View Source

    ProxyUrl

    Declaration
    public string ProxyUrl { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Size

    Declaration
    public int Size { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Url

    Declaration
    public string Url { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Width

    Declaration
    public int? Width { get; }
    Property Value
    Type Description
    Nullable<Int32>

    Methods

    | Improve this Doc View Source

    ToString()

    Returns the filename of this attachment.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A string containing the filename of this attachment.

    Implements

    IAttachment

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.10.0