Table of Contents

Class RestInteractionContext

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

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 DiscordRestClient

The underlying client.

interaction RestInteraction

The underlying interaction.

RestInteractionContext(DiscordRestClient, RestInteraction, Func<string, Task>)

Initializes a new RestInteractionContext.

public RestInteractionContext(DiscordRestClient client, RestInteraction interaction, Func<string, Task> interactionResponseCallback)

Parameters

client DiscordRestClient

The underlying client.

interaction RestInteraction

The underlying interaction.

interactionResponseCallback Func<string, Task>

The callback for outgoing json.