Class ShardedInteractionContext<TInteraction>
The sharded variant of SocketInteractionContext<TInteraction>.
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.WebSocket.dll
Syntax
public class ShardedInteractionContext<TInteraction> : SocketInteractionContext<TInteraction>, IRouteMatchContainer, IInteractionContext where TInteraction : SocketInteraction
Type Parameters
Name | Description |
---|---|
TInteraction |
Constructors
| Improve this Doc View SourceShardedInteractionContext(DiscordShardedClient, TInteraction)
Initializes a SocketInteractionContext<TInteraction>.
Declaration
public ShardedInteractionContext(DiscordShardedClient client, TInteraction interaction)
Parameters
Type | Name | Description |
---|---|---|
DiscordShardedClient | client | The underlying client. |
TInteraction | interaction | The underlying interaction. |
Properties
| Improve this Doc View SourceClient
Gets the DiscordSocketClient that the command will be executed with.
Declaration
public DiscordShardedClient Client { get; }
Property Value
Type | Description |
---|---|
DiscordShardedClient |