public QuotedCommandHandler(IServiceProvider provider, DiscordSocketClient client, CommandServiceConfig commandServiceConfig, CommandHandlerOptions options, CustomModuleBuilder moduleBuilder, IEnumerable <IPluginFactory> pluginFactories, ILogger <PrefixCommandHandler> logger, CommandService commandService, GuildConfigRepository guildConfigRepository, RepeatRepository repeatRepository) : base(provider, client, commandServiceConfig, options, moduleBuilder, pluginFactories, logger, commandService, guildConfigRepository, repeatRepository) { base.logger = logger; }
public GenericCreatedAtRouteCommandHandler( ICommandProcessor commandProcessor, ILogger <GenericCreatedAtRouteCommandHandler <TCommand, TQueryResult> > logger, CommandHandlerOptions <TQueryResult> options) { _commandProcessor = commandProcessor ?? throw new ArgumentNullException(nameof(commandProcessor)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _options = options; }
public PrefixCommandHandler(IServiceProvider provider, DiscordSocketClient client, CommandServiceConfig commandServiceConfig, CommandHandlerOptions options, CustomModuleBuilder moduleBuilder, IEnumerable <IPluginFactory> pluginFactories, ILogger <PrefixCommandHandler> logger, CommandService commandService, GuildConfigRepository guildConfigRepository, RepeatRepository repeatRepository) : base(provider, client, commandServiceConfig, moduleBuilder, pluginFactories, logger, commandService) { this.Options = options; this.logger = logger; this.CommandTriggered += this.CommandTriggeredAsync; this.CommandMissing += this.CommandMissingAsync; this.CommandSucceeded += this.CommandSucceededAsync; this.CommandFailed += this.CommandFailedAsync; this.CommandExecuted += this.CommandExecutedAsync; this._guildConfigRepository = guildConfigRepository; this._repeatRepository = repeatRepository; }
public CommandHandlerBuilder() { handlerOptions = new CommandHandlerOptions(); }