|
|
@@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
namespace Discord.Commands |
|
|
|
{ |
|
|
|
public class ShardedCommandContext : SocketCommandContext |
|
|
|
public class ShardedCommandContext : SocketCommandContext, ICommandContext |
|
|
|
{ |
|
|
|
public new DiscordShardedClient Client { get; } |
|
|
|
|
|
|
@@ -14,5 +14,8 @@ namespace Discord.Commands |
|
|
|
|
|
|
|
private static int GetShardId(DiscordShardedClient client, IGuild guild) |
|
|
|
=> guild == null ? 0 : client.GetShardIdFor(guild); |
|
|
|
|
|
|
|
//ICommandContext |
|
|
|
IDiscordClient ICommandContext.Client => Client; |
|
|
|
} |
|
|
|
} |