Added a simpler CommandContext constructor

This commit is contained in:
RogueException
2016-10-15 13:00:52 -03:00
parent c497f95d35
commit 890318ecfc

View File

@@ -18,5 +18,13 @@
User = user;
Message = msg;
}
public CommandContext(IDiscordClient client, IUserMessage msg)
{
Client = client;
Guild = (msg.Channel as IGuildChannel).Guild;
Channel = msg.Channel;
User = msg.Author;
Message = msg;
}
}
}