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.

Command.cs 634 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Threading.Tasks;
  3. namespace Discord.Commands
  4. {
  5. public sealed class Command
  6. {
  7. public string Text { get; }
  8. public int? MinArgs { get; internal set; }
  9. public int? MaxArgs { get; internal set; }
  10. public int MinPerms { get; internal set; }
  11. public bool IsHidden { get; internal set; }
  12. public string Description { get; internal set; }
  13. internal Func<CommandEventArgs, Task> Handler;
  14. internal Command(string text)
  15. {
  16. Text = text;
  17. IsHidden = false; // Set false by default to avoid null error
  18. Description = "No description set for this command.";
  19. }
  20. }
  21. }