Added support for custom ModuleBase command contexts. Added SocketCommandContext/RpcCommandContext.

This commit is contained in:
RogueException
2016-12-23 16:52:32 -04:00
parent 1965c0539a
commit 2c075e186a
32 changed files with 138 additions and 53 deletions

View File

@@ -1,6 +1,6 @@
namespace Discord.Commands
{
public struct CommandContext
public class CommandContext : ICommandContext
{
public IDiscordClient Client { get; }
public IGuild Guild { get; }
@@ -9,15 +9,7 @@
public IUserMessage Message { get; }
public bool IsPrivate => Channel is IPrivateChannel;
public CommandContext(IDiscordClient client, IGuild guild, IMessageChannel channel, IUser user, IUserMessage msg)
{
Client = client;
Guild = guild;
Channel = channel;
User = user;
Message = msg;
}
public CommandContext(IDiscordClient client, IUserMessage msg)
{
Client = client;