Discord.Net/docs/_overwrites/Commands/DontAutoLoadAttribute.Overwrite.md
2024-06-13 17:43:59 +12:00

477 B

uid: Discord.Commands.DontAutoLoadAttribute remarks: *content

The attribute can be applied to a public class that inherits @Discord.Commands.ModuleBase. By applying this attribute, @Discord.Commands.CommandService.AddModulesAsync* will not discover and add the marked module to the CommandService.


uid: Discord.Commands.DontAutoLoadAttribute example: [*content]

[DontAutoLoad]
public class MyModule : ModuleBase<SocketCommandContext>
{
    // ...
}