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 412 B

1234567891011121314151617181920
  1. ---
  2. uid: Discord.Commands.DontAutoLoadAttribute
  3. ---
  4. ### Remarks
  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. ### Example
  10. ```cs
  11. [DontAutoLoad]
  12. public class MyModule : ModuleBase<SocketCommandContext>
  13. {
  14. // ...
  15. }
  16. ```