Exemple #1
0
 public MmccInfoCommands(ICommandResponder responder, IDiscordRestInteractionAPI interactionApi, IDiscordRestChannelAPI channelApi, IButtonHandlerRepository handlerRepository, IDiscordRestWebhookAPI webhookApi, IInteractionResponder interactionResponder)
 {
     _responder            = responder;
     _interactionApi       = interactionApi;
     _channelApi           = channelApi;
     _handlerRepository    = handlerRepository;
     _webhookApi           = webhookApi;
     _interactionResponder = interactionResponder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MessageRelayingPostExecutionEvent"/> class.
 /// </summary>
 /// <param name="interactionAPI">The webhook API.</param>
 /// <param name="feedback">The feedback service.</param>
 /// <param name="portraits">The portrait service.</param>
 /// <param name="content">The content service.</param>
 public MessageRelayingPostExecutionEvent
 (
     IDiscordRestInteractionAPI interactionAPI,
     FeedbackService feedback,
     PortraitService portraits,
     ContentService content
 )
 {
     _interactionAPI = interactionAPI;
     _feedback       = feedback;
     _portraits      = portraits;
     _content        = content;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InteractionResponder"/> class.
 /// </summary>
 /// <param name="commandService">The command service.</param>
 /// <param name="interactionAPI">The interaction API.</param>
 /// <param name="eventCollector">The event collector.</param>
 /// <param name="services">The available services.</param>
 public InteractionResponder
 (
     CommandService commandService,
     IDiscordRestInteractionAPI interactionAPI,
     ExecutionEventCollectorService eventCollector,
     IServiceProvider services
 )
 {
     _commandService = commandService;
     _eventCollector = eventCollector;
     _services       = services;
     _interactionAPI = interactionAPI;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KinkWizardInteractions"/> class.
 /// </summary>
 /// <param name="kinks">The kink service.</param>
 /// <param name="dataService">The in-memory data service.</param>
 /// <param name="feedback">The user feedback service.</param>
 /// <param name="channelAPI">The channel API.</param>
 /// <param name="interactionAPI">The interaction API.</param>
 /// <param name="context">The interaction context.</param>
 public KinkWizardInteractions
 (
     KinkService kinks,
     InMemoryDataService <Snowflake, KinkWizard> dataService,
     FeedbackService feedback,
     IDiscordRestChannelAPI channelAPI,
     IDiscordRestInteractionAPI interactionAPI,
     InteractionContext context
 )
 {
     _kinks          = kinks;
     _feedback       = feedback;
     _interactionAPI = interactionAPI;
     _context        = context;
     _dataService    = dataService;
     _channelAPI     = channelAPI;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InteractionResponder"/> class.
 /// </summary>
 /// <param name="commandService">The command service.</param>
 /// <param name="options">The options.</param>
 /// <param name="interactionAPI">The interaction API.</param>
 /// <param name="eventCollector">The event collector.</param>
 /// <param name="services">The available services.</param>
 /// <param name="contextInjection">The context injection service.</param>
 public InteractionResponder
 (
     CommandService commandService,
     IOptions <InteractionResponderOptions> options,
     IDiscordRestInteractionAPI interactionAPI,
     ExecutionEventCollectorService eventCollector,
     IServiceProvider services,
     ContextInjectionService contextInjection
 )
 {
     _commandService   = commandService;
     _options          = options.Value;
     _eventCollector   = eventCollector;
     _services         = services;
     _contextInjection = contextInjection;
     _interactionAPI   = interactionAPI;
 }
Exemple #6
0
 /// <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;
 }
Exemple #7
0
 /// <inheritdoc cref="InteractionResponder"/>
 public AmbassadorInteractionResponder
 (
     CommandService commandService,
     IOptions <InteractionResponderOptions> options,
     IDiscordRestInteractionAPI interactionAPI,
     ExecutionEventCollectorService eventCollector,
     IServiceProvider services,
     ContextInjectionService contextInjection,
     IOptions <TokenizerOptions> tokenizerOptions,
     IOptions <TreeSearchOptions> treeSearchOptions
 )
     : base
     (
         commandService,
         options,
         interactionAPI,
         eventCollector,
         services,
         contextInjection,
         tokenizerOptions,
         treeSearchOptions
     )
 {
 }
 public InteractionResponder(IDiscordRestWebhookAPI webhookApi, DiscordSettings discordSettings, IDiscordRestInteractionAPI interactionApi)
 {
     _webhookApi      = webhookApi;
     _discordSettings = discordSettings;
     _interactionApi  = interactionApi;
 }
 public InteractionResponder(DiscordSettings discordSettings, IDiscordRestInteractionAPI interactionApi)
 {
     _discordSettings = discordSettings;
     _interactionApi  = interactionApi;
 }