Class RestInteractionContext
Represents a Rest based context of an IDiscordInteraction.
Inherited Members
Namespace: Discord.Rest
Assembly: Discord.Net.Rest.dll
Syntax
public class RestInteractionContext : RestInteractionContext<RestInteraction>, IRestInteractionContext, IInteractionContext, IRouteMatchContainer
Constructors
| Improve this Doc View SourceRestInteractionContext(DiscordRestClient, RestInteraction)
Initializes a new RestInteractionContext.
Declaration
public RestInteractionContext(DiscordRestClient client, RestInteraction interaction)
Parameters
Type | Name | Description |
---|---|---|
DiscordRestClient | client | The underlying client. |
RestInteraction | interaction | The underlying interaction. |
RestInteractionContext(DiscordRestClient, RestInteraction, Func<String, Task>)
Initializes a new RestInteractionContext.
Declaration
public RestInteractionContext(DiscordRestClient client, RestInteraction interaction, Func<string, Task> interactionResponseCallback)
Parameters
Type | Name | Description |
---|---|---|
DiscordRestClient | client | The underlying client. |
RestInteraction | interaction | The underlying interaction. |
Func<String, Task> | interactionResponseCallback | The callback for outgoing json. |