From 5a5f3f206fffe42061070ae70c096b2f4bea2eaf Mon Sep 17 00:00:00 2001 From: Joe4evr Date: Tue, 4 Jul 2017 14:12:27 +0200 Subject: [PATCH] Explicitly re-implement ICommandContext.Client --- src/Discord.Net.WebSocket/Commands/ShardedCommandContext.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.WebSocket/Commands/ShardedCommandContext.cs b/src/Discord.Net.WebSocket/Commands/ShardedCommandContext.cs index a983db792..a29c9bb70 100644 --- a/src/Discord.Net.WebSocket/Commands/ShardedCommandContext.cs +++ b/src/Discord.Net.WebSocket/Commands/ShardedCommandContext.cs @@ -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; } }