Table of Contents

Class SocketMessageComponentData

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

Represents the data sent with a MessageComponent.

public class SocketMessageComponentData : IComponentInteractionData, IDiscordInteractionData
Inheritance
SocketMessageComponentData
Implements
Inherited Members

Properties

Channels

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

public IReadOnlyCollection<SocketChannel> Channels { get; }

Property Value

IReadOnlyCollection<SocketChannel>

CustomId

Gets the component's Custom Id that was clicked.

public string CustomId { get; }

Property Value

string

Members

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

public IReadOnlyCollection<SocketGuildUser> Members { get; }

Property Value

IReadOnlyCollection<SocketGuildUser>

Roles

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

public IReadOnlyCollection<SocketRole> Roles { get; }

Property Value

IReadOnlyCollection<SocketRole>

Type

Gets the type of the component clicked.

public ComponentType Type { get; }

Property Value

ComponentType

Users

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

public IReadOnlyCollection<IUser> Users { get; }

Property Value

IReadOnlyCollection<IUser>

Remarks

Returns SocketUser if user is cached, RestUser otherwise.

Value

Gets the value of a TextInput interaction response.

public string Value { get; }

Property Value

string

Values

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

public IReadOnlyCollection<string> Values { get; }

Property Value

IReadOnlyCollection<string>