Exemple #1
0
 public async Task CommandHelp(
     [Summary("The name of the command to be searched for.")]
     string commandName = null)
 {
     try
     {
         if (commandName != null)
         {
             var command = _help.GetCommandInfo(commandName);
             var info    = _help.ListCommandHelp(command);
             await Context.Channel.SendMessageAsync(embed : Embeds.CreateEmbed(command.Name, info));
         }
         else
         {
             var info = _help.ListGeneralHelp();
             await Context.Channel.SendMessageAsync(embed : Embeds.CreateEmbed("Help", info));
         }
     }
     catch (Exception e)
     {
         await ReplyAsync(e.Message);
     }
 }