Search Results for

    Show / Hide Table of Contents

    Class SocketMessageComponentData

    Represents the data sent with a MessageComponent.

    Inheritance
    Object
    SocketMessageComponentData
    Implements
    IComponentInteractionData
    IDiscordInteractionData
    Namespace: Discord.WebSocket
    Assembly: Discord.Net.WebSocket.dll
    Syntax
    public class SocketMessageComponentData : object, IComponentInteractionData, IDiscordInteractionData

    Properties

    | Improve this Doc View Source

    CustomId

    Gets the components Custom Id that was clicked.

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

    Type

    Gets the type of the component clicked.

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

    Value

    Gets the value of a TextInputComponent interaction response.

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

    Values

    Gets the value(s) of a SelectMenuComponent interaction response.

    Declaration
    public IReadOnlyCollection<string> Values { get; }
    Property Value
    Type Description
    IReadOnlyCollection<String>

    Implements

    IComponentInteractionData
    IDiscordInteractionData

    Theme

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