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.

OverrideContext.cs 754 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Discord.Overrides
  7. {
  8. /// <summary>
  9. /// Represents context thats passed to an override in the initialization step.
  10. /// </summary>
  11. public sealed class OverrideContext
  12. {
  13. /// <summary>
  14. /// A callback used to log messages.
  15. /// </summary>
  16. public Action<string> Log { get; private set; }
  17. /// <summary>
  18. /// The info about the override.
  19. /// </summary>
  20. public Override Info { get; private set; }
  21. internal OverrideContext(Action<string> log, Override info)
  22. {
  23. Log = log;
  24. Info = info;
  25. }
  26. }
  27. }