Class ApplicationCommandsConfiguration
- Namespace
- DisCatSharp.ApplicationCommands
- Assembly
- DisCatSharp.ApplicationCommands.dll
A configuration for a ApplicationCommandsExtension
public sealed class ApplicationCommandsConfiguration
- Inheritance
-
ApplicationCommandsConfiguration
- Inherited Members
Constructors
- ApplicationCommandsConfiguration()
Creates a new configuration with default values.
- ApplicationCommandsConfiguration(ApplicationCommandsConfiguration)
Creates a new instance of ApplicationCommandsConfiguration, copying the properties of another configuration.
- ApplicationCommandsConfiguration(IServiceProvider)
Utilized via dependency injection pipeline.
Properties
- AutoDefer
Automatically defer all responses.
note
If you enable this, you can't use CreateResponse. Use EditResponse instead.
Defaults to false.
- CheckAllGuilds
This option informs the module to check through all guilds whether the application.commands scope is set.
warning
This will take quite a while, when the bot is on more than 1k guilds.
Defaults to false.
- DebugStartup
This option increases the debug output of the module.
warning
This is not recommended for production use.
Enable this option only if DisCatSharp support advises you to do so.
Defaults to false.
- EnableDefaultHelp
This option enables the default help command.
Disabling this will allow you to make your own help command.
Defaults to true.
- EnableDefaultUserAppsHelp
This option enables the default help command with user apps capability.
Mutually exclusive with EnableDefaultHelp.
Defaults to false.
- EnableLocalization
This option enables the localization feature.
Defaults to false.
- GenerateTranslationFilesOnly
Whether to only generate translations files and abort after that.
Defaults to false.
- ServiceProvider
Sets the service provider.
Objects in this provider are used when instantiating application command modules.
This allows passing data around without resorting to static members.
Defaults to null.