Class RestInteractionContext
Represents a Rest based context of an IDiscordInteraction.
public class RestInteractionContext : RestInteractionContext<RestInteraction>, IRestInteractionContext, IInteractionContext, IRouteMatchContainer
- Inheritance
-
RestInteractionContext
- Implements
- Inherited Members
Constructors
RestInteractionContext(DiscordRestClient, RestInteraction)
Initializes a new RestInteractionContext.
public RestInteractionContext(DiscordRestClient client, RestInteraction interaction)
Parameters
client
DiscordRestClientThe underlying client.
interaction
RestInteractionThe underlying interaction.
RestInteractionContext(DiscordRestClient, RestInteraction, Func<string, Task>)
Initializes a new RestInteractionContext.
public RestInteractionContext(DiscordRestClient client, RestInteraction interaction, Func<string, Task> interactionResponseCallback)
Parameters
client
DiscordRestClientThe underlying client.
interaction
RestInteractionThe underlying interaction.
interactionResponseCallback
Func<string, Task>The callback for outgoing json.