/// <summary> /// Initializes a new instance of the <see cref="CommandResponder"/> class. /// </summary> /// <param name="commandService">The command service.</param> /// <param name="options">The command responder options.</param> /// <param name="eventCollector">The event collector.</param> /// <param name="services">The available services.</param> public CommandResponder ( CommandService commandService, IOptions <CommandResponderOptions> options, ExecutionEventCollectorService eventCollector, IServiceProvider services ) { _commandService = commandService; _services = services; _eventCollector = eventCollector; _options = options.Value; }
/// <summary> /// Initializes a new instance of the <see cref="ConsentCheckingPreExecutionEvent"/> class. /// </summary> /// <param name="privacy">The privacy service.</param> /// <param name="commandService">The command service.</param> /// <param name="options">The responder options.</param> /// <param name="interactionAPI">The interaction API.</param> /// <param name="tokenizerOptions">The tokenizer options.</param> /// <param name="treeSearchOptions">The tree search options.</param> /// <param name="feedback">The feedback service.</param> public ConsentCheckingPreExecutionEvent ( PrivacyService privacy, CommandService commandService, IOptions <CommandResponderOptions> options, IDiscordRestInteractionAPI interactionAPI, IOptions <TokenizerOptions> tokenizerOptions, IOptions <TreeSearchOptions> treeSearchOptions, FeedbackService feedback ) { _privacy = privacy; _commandService = commandService; _interactionAPI = interactionAPI; _feedback = feedback; _options = options.Value; _tokenizerOptions = tokenizerOptions.Value; _treeSearchOptions = treeSearchOptions.Value; }