Class SocketMessageComponentData
Represents the data sent with a MessageComponent.
Namespace: Discord.WebSocket
Assembly: Discord.Net.WebSocket.dll
Syntax
public class SocketMessageComponentData : object, IComponentInteractionData, IDiscordInteractionData
Properties
| Improve this Doc View SourceCustomId
Gets the components Custom Id that was clicked.
Declaration
public string CustomId { get; }
Property Value
Type | Description |
---|---|
String |
Type
Gets the type of the component clicked.
Declaration
public ComponentType Type { get; }
Property Value
Type | Description |
---|---|
ComponentType |
Value
Gets the value of a TextInputComponent interaction response.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
String |
Values
Gets the value(s) of a SelectMenuComponent interaction response.
Declaration
public IReadOnlyCollection<string> Values { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<String> |