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.

post-execution_basic.cs 384 B

1234567891011
  1. var result = await _commands.ExecuteAsync(context, argPos, _services);
  2. if (result.CommandError != null)
  3. switch(result.CommandError)
  4. {
  5. case CommandError.BadArgCount:
  6. await context.Channel.SendMessageAsync("Parameter count does not match any command's.");
  7. break;
  8. default:
  9. await context.Channel.SendMessageAsync($"An error has occurred {result.ErrorReason}");
  10. break;
  11. }