Table of Contents

Class HttpMessageCommandContext

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

Context for handling HTTP-based message command interactions.

public class HttpMessageCommandContext : BaseMessageCommandContext, IApplicationCommandContext, IInteractionContext, IRestClientContext, IChannelContext, IUserContext, IContext
Inheritance
HttpMessageCommandContext
Implements
Inherited Members

Constructors

HttpMessageCommandContext(MessageCommandInteraction, RestClient)

Context for handling HTTP-based message command interactions.

public HttpMessageCommandContext(MessageCommandInteraction interaction, RestClient client)

Parameters

interaction MessageCommandInteraction
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 message of the message command.

public RestMessage Target { get; }

Property Value

RestMessage

User

User who invoked the handled command or interaction.

public User User { get; }

Property Value

User