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.

PriorityAttribute.cs 529 B

123456789101112131415161718
  1. using System;
  2. namespace Discord.Commands
  3. {
  4. /// <summary> Sets priority of commands </summary>
  5. [AttributeUsage(AttributeTargets.Method)]
  6. public class PriorityAttribute : Attribute
  7. {
  8. /// <summary> The priority which has been set for the command </summary>
  9. public int Priority { get; }
  10. /// <summary> Creates a new <see cref="PriorityAttribute"/> with the given priority. </summary>
  11. public PriorityAttribute(int priority)
  12. {
  13. Priority = priority;
  14. }
  15. }
  16. }