You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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);
- }
- // ...
- }
|