Class ShardedCommandContext
The sharded variant of ICommandContext, which may contain the client, user, guild, channel, and message.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Discord.Commands
Assembly: Discord.Net.WebSocket.dll
Syntax
public class ShardedCommandContext : SocketCommandContext, ICommandContext
Constructors
| Improve this Doc View SourceShardedCommandContext(DiscordShardedClient, SocketUserMessage)
Declaration
public ShardedCommandContext(DiscordShardedClient client, SocketUserMessage msg)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscordShardedClient | client | |
| SocketUserMessage | msg |
Properties
| Improve this Doc View SourceClient
Gets the DiscordShardedClient that the command is executed with.
Declaration
public DiscordShardedClient Client { get; }
Property Value
| Type | Description |
|---|---|
| DiscordShardedClient |
Explicit Interface Implementations
| Improve this Doc View SourceICommandContext.Client
Gets the IDiscordClient that the command is executed with.
Declaration
IDiscordClient ICommandContext.Client { get; }
Returns
| Type | Description |
|---|---|
| IDiscordClient |