Class ApplicationCommandsConfiguration
A configuration for a ApplicationCommandsExtension
Inheritance
Namespace: DisCatSharp.ApplicationCommands
Assembly: DisCatSharp.ApplicationCommands.dll
Syntax
public class ApplicationCommandsConfiguration
Constructors
| Improve this Doc View SourceApplicationCommandsConfiguration(ApplicationCommandsConfiguration)
Creates a new instance of ApplicationCommandsConfiguration, copying the properties of another configuration.
Declaration
public ApplicationCommandsConfiguration(ApplicationCommandsConfiguration acc)
Parameters
Type | Name | Description |
---|---|---|
ApplicationCommandsConfiguration | acc | Configuration the properties of which are to be copied. |
ApplicationCommandsConfiguration(IServiceProvider)
Initializes a new instance of the ApplicationCommandsConfiguration class.
Declaration
[ActivatorUtilitiesConstructor]
public ApplicationCommandsConfiguration(IServiceProvider provider = null)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | provider | The service provider. |
Properties
| Improve this Doc View SourceAutoDefer
Automatically defer all responses.
note
If you enable this, you can't use CreateResponse. Use EditResponse instead.
Defaults to false.
Declaration
public bool AutoDefer { set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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.
Declaration
public bool CheckAllGuilds { set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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.
Declaration
public bool DebugStartup { set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableDefaultHelp
This option enables the default help command.
Disabling this will allow you to make your own help command.
Defaults to true.
Declaration
public bool EnableDefaultHelp { set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableLocalization
This option enables the localization feature.
Defaults to false.
Declaration
public bool EnableLocalization { set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ManualOverride
This option can override the default registration behavior of the module.
warning
It can lead to unexpected behavior of the application commands module.
Enable this option only if DisCatSharp support advises you to do so.
Defaults to false.
Declaration
public bool ManualOverride { set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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.
Declaration
public IServiceProvider ServiceProvider { set; }
Property Value
Type | Description |
---|---|
System.IServiceProvider |