Skip to main content

Class SocketMessageComponentData

Represents the data sent with a Discord.InteractionType.MessageComponent.

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SocketMessageComponentData : IComponentInteractionData, IDiscordInteractionData

Properties​

CustomId​

Gets the components Custom Id that was clicked.

View Source​
Declaration
public string CustomId { get; }

Type​

Gets the type of the component clicked.

View Source​
Declaration
public ComponentType Type { get; }

Values​

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

View Source​
Declaration
public IReadOnlyCollection<string> Values { get; }

Implements​