Beispiel #1
0
 internal async Task SendHelpForCommand(string command, ICommandContext Context)
 {
     var result = _commands.Search(Context, command);
     if (result.IsSuccess)
     {
         foreach (var foundCommand in result.Commands)
         {
             await Context.Channel.SendMessageAsync("", false, Embeds.CommandHelp(foundCommand)).ConfigureAwait(false);
         }
     }
     else
     {
         await Context.Channel.SendMessageAsync("", false, Embeds.CommandNotFound(command)).ConfigureAwait(false);
     }
 }