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 : SocketInteraction
Type 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
client
DiscordShardedClientThe underlying client.
interaction
TInteractionThe underlying interaction.
Properties
Client
Gets the DiscordSocketClient that the command will be executed with.
public DiscordShardedClient Client { get; }