Class SocketUserCommand
Represents a Websocket-based slash command received over the gateway.
Implements
Inherited Members
Namespace: Discord.WebSocket
Assembly: Discord.Net.WebSocket.dll
Syntax
public class SocketUserCommand : SocketCommandBase, IEntity<ulong>, IUserCommandInteraction, IApplicationCommandInteraction, IDiscordInteraction, ISnowflakeEntity, IEntity<ulong>
Properties
| Improve this Doc View SourceData
The data associated with this interaction.
Declaration
public SocketUserCommandData Data { get; }
Property Value
Type | Description |
---|---|
SocketUserCommandData |
Explicit Interface Implementations
| Improve this Doc View SourceIApplicationCommandInteraction.Data
Gets the data of the application command interaction
Declaration
IApplicationCommandInteractionData IApplicationCommandInteraction.Data { get; }
Returns
Type | Description |
---|---|
IApplicationCommandInteractionData |
IDiscordInteraction.Data
Gets the data sent within this interaction.
Declaration
IDiscordInteractionData IDiscordInteraction.Data { get; }
Returns
Type | Description |
---|---|
IDiscordInteractionData |
IUserCommandInteraction.Data
Gets the data associated with this interaction.
Declaration
IUserCommandInteractionData IUserCommandInteraction.Data { get; }
Returns
Type | Description |
---|---|
IUserCommandInteractionData |