Search Results for

    Show / Hide Table of Contents

    Class ApplicationCommandsConfiguration

    A configuration for a ApplicationCommandsExtension

    Inheritance
    System.Object
    ApplicationCommandsConfiguration
    Namespace: DisCatSharp.ApplicationCommands
    Assembly: DisCatSharp.ApplicationCommands.dll
    Syntax
    public class ApplicationCommandsConfiguration

    Constructors

    | Improve this Doc View Source

    ApplicationCommandsConfiguration(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.

    | Improve this Doc View Source

    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 Source

    AutoDefer

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    EnableLocalization

    This option enables the localization feature.

    Defaults to false.

    Declaration
    public bool EnableLocalization { set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems