Browse Source

Explicitly re-implement ICommandContext.Client

pull/739/head
Joe4evr 8 years ago
parent
commit
5a5f3f206f
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/Discord.Net.WebSocket/Commands/ShardedCommandContext.cs

+ 4
- 1
src/Discord.Net.WebSocket/Commands/ShardedCommandContext.cs View File

@@ -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;
}
}

Loading…
Cancel
Save