Table of Contents

Class HttpApplicationCommandContext

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

Context for handling HTTP-based application command interactions.

public class HttpApplicationCommandContext : BaseApplicationCommandContext, IApplicationCommandContext, IInteractionContext, IRestClientContext, IChannelContext, IUserContext, IContext
Inheritance
HttpApplicationCommandContext
Implements
Inherited Members

Constructors

HttpApplicationCommandContext(ApplicationCommandInteraction, RestClient)

Context for handling HTTP-based application command interactions.

public HttpApplicationCommandContext(ApplicationCommandInteraction interaction, RestClient client)

Parameters

interaction ApplicationCommandInteraction
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

User

User who invoked the handled command or interaction.

public User User { get; }

Property Value

User