Table of Contents

Class HttpModalInteractionContext

Namespace
NetCord.Services.ComponentInteractions
Assembly
NetCord.Services.dll

Context for handling HTTP-based modal interactions.

public class HttpModalInteractionContext : BaseModalInteractionContext, IComponentInteractionContext, IInteractionContext, IRestClientContext, IUserContext, IChannelContext, IContext
Inheritance
HttpModalInteractionContext
Implements
Inherited Members

Constructors

HttpModalInteractionContext(ModalInteraction, RestClient)

Context for handling HTTP-based modal interactions.

public HttpModalInteractionContext(ModalInteraction interaction, RestClient client)

Parameters

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

Components

The components submitted with the modal.

public IReadOnlyList<IModalComponent> Components { get; }

Property Value

IReadOnlyList<IModalComponent>

User

User who invoked the handled command or interaction.

public User User { get; }

Property Value

User