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.

DontAutoLoadAttribute.Overwrite.md 477 B

12345678910111213141516171819202122
  1. ---
  2. uid: Discord.Commands.DontAutoLoadAttribute
  3. remarks: *content
  4. ---
  5. The attribute can be applied to a public class that inherits
  6. @Discord.Commands.ModuleBase. By applying this attribute,
  7. @Discord.Commands.CommandService.AddModulesAsync* will not discover and
  8. add the marked module to the CommandService.
  9. ---
  10. uid: Discord.Commands.DontAutoLoadAttribute
  11. example: [*content]
  12. ---
  13. ```cs
  14. [DontAutoLoad]
  15. public class MyModule : ModuleBase<SocketCommandContext>
  16. {
  17. // ...
  18. }
  19. ```