Class HttpComponentInteractionContext
- Namespace
- NetCord.Services.ComponentInteractions
- Assembly
- NetCord.Services.dll
Context for handling HTTP-based component interactions.
public class HttpComponentInteractionContext : BaseComponentInteractionContext, IComponentInteractionContext, IInteractionContext, IRestClientContext, IUserContext, IChannelContext, IContext
- Inheritance
-
HttpComponentInteractionContext
- Implements
- Inherited Members
Constructors
HttpComponentInteractionContext(ComponentInteraction, RestClient)
Context for handling HTTP-based component interactions.
public HttpComponentInteractionContext(ComponentInteraction interaction, RestClient client)
Parameters
interactionComponentInteractionThe interaction that is being handled. clientRestClientThe 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
Client
The RestClient associated with the handled command or interaction.
public RestClient Client { get; }
Property Value
User
User who invoked the handled command or interaction.
public User User { get; }