Class ShardedInteractionContext<TInteraction>
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.WebSocket.dll
The sharded variant of SocketInteractionContext<TInteraction>.
public class ShardedInteractionContext<TInteraction> : SocketInteractionContext<TInteraction>, IRouteMatchContainer, IInteractionContext where TInteraction : SocketInteractionType Parameters
- TInteraction
- Inheritance
- 
      
      SocketInteractionContext<TInteraction>ShardedInteractionContext<TInteraction>
- Implements
- Derived
- Inherited Members
Constructors
ShardedInteractionContext(DiscordShardedClient, TInteraction)
Initializes a SocketInteractionContext<TInteraction>.
public ShardedInteractionContext(DiscordShardedClient client, TInteraction interaction)Parameters
- clientDiscordShardedClient
- The underlying client. 
- interactionTInteraction
- The underlying interaction. 
Properties
Client
Gets the DiscordSocketClient that the command will be executed with.
public DiscordShardedClient Client { get; }