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.

RunMode.cs 666 B

8 years ago
1234567891011121314151617181920212223
  1. namespace Discord.Commands
  2. {
  3. /// <summary>
  4. /// Specifies the behavior of the command execution workflow.
  5. /// </summary>
  6. /// <seealso cref="CommandServiceConfig"/>
  7. /// <seealso cref="CommandAttribute"/>
  8. public enum RunMode
  9. {
  10. /// <summary>
  11. /// The default behaviour set in <see cref="CommandServiceConfig"/>.
  12. /// </summary>
  13. Default,
  14. /// <summary>
  15. /// Executes the command on the same thread as gateway one.
  16. /// </summary>
  17. Sync,
  18. /// <summary>
  19. /// Executes the command on a different thread from the gateway one.
  20. /// </summary>
  21. Async
  22. }
  23. }