using Discord; using Discord.Commands; public class Commands { public async Task Install(DiscordSocketClient client) { var commands = new CommandService(); var map = new DependencyMap(); map.Add(client); var self = await client.GetCurrentUserAsync(); map.Add(self); await commands.LoadAssembly(Assembly.GetCurrentAssembly(), map); } // ... }