Table of Contents

Class HttpUserCommandContext

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll

Context for handling HTTP-based user command interactions.

public class HttpUserCommandContext : BaseUserCommandContext, IApplicationCommandContext, IInteractionContext, IRestClientContext, IChannelContext, IUserContext, IContext
Inheritance
HttpUserCommandContext
Implements
Inherited Members

Constructors

HttpUserCommandContext(UserCommandInteraction, RestClient)

Context for handling HTTP-based user command interactions.

public HttpUserCommandContext(UserCommandInteraction interaction, RestClient client)

Parameters

interaction UserCommandInteraction
The interaction that is being handled.
client RestClient
The RestClient associated with the handled command or interaction.

Properties

Channel

Channel in which the handled command or interaction was invoked.

public TextChannel Channel { get; }

Property Value

TextChannel

Client

The RestClient associated with the handled command or interaction.

public RestClient Client { get; }

Property Value

RestClient

Target

The target user of the user command.

public User Target { get; }

Property Value

User

User

User who invoked the handled command or interaction.

public User User { get; }

Property Value

User