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.

CommandErrorEventArgs.cs 580 B

123456789101112131415161718
  1. using System;
  2. namespace Discord.Commands
  3. {
  4. public enum CommandErrorType { Exception, UnknownCommand, BadPermissions, BadArgCount, InvalidInput }
  5. public class CommandErrorEventArgs : CommandEventArgs
  6. {
  7. public CommandErrorType ErrorType { get; }
  8. public Exception Exception { get; }
  9. public CommandErrorEventArgs(CommandErrorType errorType, CommandEventArgs baseArgs, Exception ex)
  10. : base(baseArgs.Message, baseArgs.Command, baseArgs.Args)
  11. {
  12. Exception = ex;
  13. ErrorType = errorType;
  14. }
  15. }
  16. }