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

    Channels

    Gets the channels(s) of a ChannelSelect interaction response. null if select type is different.

    Declaration
    public IReadOnlyCollection<SocketChannel> Channels { get; }
    Property Value
    Type Description
    IReadOnlyCollection<SocketChannel>
    | Improve this Doc View Source

    CustomId

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

    Members

    Gets the guild member(s) of a UserSelect or MentionableSelect interaction response. null if type select is different.

    Declaration
    public IReadOnlyCollection<SocketGuildUser> Members { get; }
    Property Value
    Type Description
    IReadOnlyCollection<SocketGuildUser>
    | Improve this Doc View Source

    Roles

    Gets the roles(s) of a RoleSelect or MentionableSelect interaction response. null if select type is different.

    Declaration
    public IReadOnlyCollection<SocketRole> Roles { get; }
    Property Value
    Type Description
    IReadOnlyCollection<SocketRole>
    | 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

    Users

    Gets the user(s) of a UserSelect or MentionableSelect interaction response. null if select type is different.

    Declaration
    public IReadOnlyCollection<IUser> Users { get; }
    Property Value
    Type Description
    IReadOnlyCollection<IUser>
    Remarks

    Returns SocketUser if user is cached, RestUser otherwise.

    | Improve this Doc View Source

    Value

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

    Values

    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-2023 3.12.0