Add docs for the Command Service

This commit is contained in:
Christopher F
2016-07-22 01:48:24 -04:00
parent ea6f8b457f
commit c5d63485c1
7 changed files with 202 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
using Discord;
using Discord.Commands;
public class Commands
{
public async Task Install(DiscordSocketClient client)
{
var commands = new CommandService();
var map = new DependencyMap();
map.Add<IDiscordClient>(client);
var self = await client.GetCurrentUserAsync();
map.Add<ISelfUser>(self);
await commands.LoadAssembly(Assembly.GetCurrentAssembly(), map);
}
// ...
}