/// <summary> /// Constructs a new <see cref="PromotionLoggingHandler"/> object, with injected dependencies. /// </summary> public PromotionLoggingHandler(IServiceProvider serviceProvider, IDiscordClient discordClient, IDesignatedChannelService designatedChannelService) { DiscordClient = discordClient; DesignatedChannelService = designatedChannelService; _lazyPromotionsService = new Lazy <IPromotionsService>(() => serviceProvider.GetRequiredService <IPromotionsService>()); }
public ModerationService( IDiscordClient discordClient, IAuthorizationService authorizationService, IChannelService channelService, IUserService userService, IModerationActionRepository moderationActionRepository, IDesignatedRoleMappingRepository designatedRoleMappingRepository, IInfractionRepository infractionRepository, IDeletedMessageRepository deletedMessageRepository, IDeletedMessageBatchRepository deletedMessageBatchRepository, IRoleService roleService, IDesignatedChannelService designatedChannelService, IDogStatsd dogStatsd) { _discordClient = discordClient; _authorizationService = authorizationService; _channelService = channelService; _userService = userService; _moderationActionRepository = moderationActionRepository; _designatedRoleMappingRepository = designatedRoleMappingRepository; _infractionRepository = infractionRepository; _deletedMessageRepository = deletedMessageRepository; _deletedMessageBatchRepository = deletedMessageBatchRepository; _roleService = roleService; _designatedChannelService = designatedChannelService; _dogStatsd = dogStatsd; }
/// <summary> /// Creates a new <see cref="ModerationService"/>, with the given injected dependencies. /// </summary> public ModerationService( IDiscordClient discordClient, IAuthorizationService authorizationService, IChannelService channelService, IUserService userService, IModerationActionRepository moderationActionRepository, IDesignatedRoleMappingRepository designatedRoleMappingRepository, IInfractionRepository infractionRepository, IDeletedMessageRepository deletedMessageRepository, IDeletedMessageBatchRepository deletedMessageBatchRepository, IRoleService roleService, IDesignatedChannelService designatedChannelService, IDogStatsd stats = null) { DiscordClient = discordClient; AuthorizationService = authorizationService; ChannelService = channelService; UserService = userService; ModerationActionRepository = moderationActionRepository; DesignatedRoleMappingRepository = designatedRoleMappingRepository; InfractionRepository = infractionRepository; DeletedMessageRepository = deletedMessageRepository; DeletedMessageBatchRepository = deletedMessageBatchRepository; RoleService = roleService; DesignatedChannelService = designatedChannelService; Stats = stats; }
public StarboardService( IDesignatedChannelService designatedChannelService, IMessageRepository messageRepository) { _designatedChannelService = designatedChannelService; _messageRepository = messageRepository; }
public GiveawayModule( IGiveawayService giveawayService, IDesignatedChannelService designatedChannelService) { _giveawayService = giveawayService; _designatedChannelService = designatedChannelService; }
/// <summary> /// Constructs a new <see cref="ModerationLoggingBehavior"/> object, with injected dependencies. /// </summary> public ModerationLoggingBehavior(IServiceProvider serviceProvider, IDiscordClient discordClient, IDesignatedChannelService designatedChannelService) { DiscordClient = discordClient; DesignatedChannelService = designatedChannelService; _lazyModerationService = new Lazy <IModerationService>(() => serviceProvider.GetRequiredService <IModerationService>()); }
public MessageLoggingBehavior( IDesignatedChannelService designatedChannelService, IDiscordSocketClient discordSocketClient, ILogger <MessageLoggingBehavior> logger) { _designatedChannelService = designatedChannelService; _discordSocketClient = discordSocketClient; _logger = logger; }
public StarboardHandler( IStarboardService starboardService, IDesignatedChannelService designatedChannelService, IQuoteService quoteService) { _starboardService = starboardService; _designatedChannelService = designatedChannelService; _quoteService = quoteService; }
public UserMetricsBehavior( IDesignatedChannelService designatedChannelService, IDesignatedRoleService designatedRoleService, IDogStatsd dogStatsd, ILogger <UserMetricsBehavior> logger) { _designatedChannelService = designatedChannelService; _designatedRoleService = designatedRoleService; _dogStatsd = dogStatsd; _logger = logger; }
/// <summary> /// Constructs a new <see cref="ModerationInvitePurgingHandler"/> object, with the given injected dependencies. /// </summary> /// <param name="designatedChannelService"></param> /// <param name="authorizationService"></param> /// <param name="moderationService"></param> /// <param name="botUser">The Discord user that the bot is running as.</param> public ModerationInvitePurgingHandler( IDesignatedChannelService designatedChannelService, IAuthorizationService authorizationService, IModerationService moderationService, ISelfUser botUser) { _designatedChannelService = designatedChannelService; _authorizationService = authorizationService; _moderationService = moderationService; _botUser = botUser; }
public AttachmentBlacklistBehavior( IDesignatedChannelService designatedChannelService, IDiscordSocketClient discordSocketClient, ILogger <AttachmentBlacklistBehavior> logger, IModerationService moderationService) { _designatedChannelService = designatedChannelService; _discordSocketClient = discordSocketClient; _logger = logger; _moderationService = moderationService; }
/// <summary> /// Constructs a new <see cref="InvitePurgingBehavior"/> object, with the given injected dependencies. /// </summary> public InvitePurgingBehavior( IDesignatedChannelService designatedChannelService, IDiscordSocketClient discordSocketClient, IAuthorizationService authorizationService, IModerationService moderationService) { DesignatedChannelService = designatedChannelService; _discordSocketClient = discordSocketClient; AuthorizationService = authorizationService; ModerationService = moderationService; }
/// <summary> /// Constructs a new <see cref="InvitePurgingBehavior"/> object, with the given injected dependencies. /// </summary> public InvitePurgingBehavior( IDesignatedChannelService designatedChannelService, IAuthorizationService authorizationService, IModerationService moderationService, ISelfUserProvider selfUserProvider) { DesignatedChannelService = designatedChannelService; AuthorizationService = authorizationService; ModerationService = moderationService; SelfUserProvider = selfUserProvider; }
public MessageContentCheckBehaviour( IDesignatedChannelService designatedChannelService, IDiscordSocketClient discordSocketClient, IAuthorizationService authorizationService, IModerationService moderationService, IMessageContentPatternService messageContentPatternService) { _designatedChannelService = designatedChannelService; _discordSocketClient = discordSocketClient; _authorizationService = authorizationService; _moderationService = moderationService; _messageContentPatternService = messageContentPatternService; }
/// <summary> /// Constructs a new <see cref="ModerationLoggingBehavior"/> object, with injected dependencies. /// </summary> public ModerationLoggingBehavior( IServiceProvider serviceProvider, IDiscordClient discordClient, IDesignatedChannelService designatedChannelService, IOptions <ModixConfig> config) { DiscordClient = discordClient; DesignatedChannelService = designatedChannelService; Config = config.Value; _lazyModerationService = new Lazy <IModerationService>(() => serviceProvider.GetRequiredService <IModerationService>()); }
public MuteRoleConfigurationResponder( IAuthorizationService authorizationService, IAuthorizationContextService authorizationContextService, IDiscordRestChannelAPI channelApi, IDesignatedChannelService designatedChannelService, IModerationService moderationService) { _authorizationService = authorizationService; _authorizationContextService = authorizationContextService; _channelApi = channelApi; _designatedChannelService = designatedChannelService; _moderationService = moderationService; }
public MessageLoggingResponder(ILogger <MessageLoggingResponder> logger, IDiscordRestChannelAPI channelApi, IDesignatedChannelService designatedChannelService, IAuthorizationContextService authService, IThreadService threadService, CacheService cache) { _logger = logger; _channelApi = channelApi; _designatedChannelService = designatedChannelService; _authService = authService; _threadSvc = threadService; _cache = cache; }
/// <summary> /// Constructs a new <see cref="PromotionLoggingHandler"/> object, with injected dependencies. /// </summary> public PromotionLoggingHandler( IAuthorizationService authorizationService, IDiscordSocketClient discordSocketClient, IDesignatedChannelService designatedChannelService, IUserService userService, IPromotionsService promotionsService, IOptions <ModixConfig> modixConfig) { AuthorizationService = authorizationService; DiscordSocketClient = discordSocketClient; DesignatedChannelService = designatedChannelService; UserService = userService; PromotionsService = promotionsService; ModixConfig = modixConfig.Value; }
/// <summary> /// Constructs a new <see cref="PromotionLoggingHandler"/> object, with injected dependencies. /// </summary> public PromotionLoggingHandler( IAuthorizationService authorizationService, IDiscordClient discordClient, IDesignatedChannelService designatedChannelService, IUserService userService, IPromotionsService promotionsService, ISelfUserProvider selfUserProvider) { AuthorizationService = authorizationService; DiscordClient = discordClient; DesignatedChannelService = designatedChannelService; UserService = userService; PromotionsService = promotionsService; SelfUserProvider = selfUserProvider; }
public MessageCheckResponder( IMessageContentPatternService msgContentPatternSvc, IDiscordRestChannelAPI channelApi, IDiscordRestUserAPI userApi, IDesignatedChannelService designatedChannelService, IAuthorizationService authService, IAuthorizationContextService remoraAuthService, IDeletedMessageRepository deletedRepository, IThreadService threadService ) { _msgContentPatternSvc = msgContentPatternSvc; _channelApi = channelApi; _userApi = userApi; _designatedChannelService = designatedChannelService; _authService = authService; _remoraAuthService = remoraAuthService; _deletedMessageRepository = deletedRepository; _threadSvc = threadService; }
public DesignatedChannelModule(IAuthorizationService authorizationService, IDesignatedChannelService designatedChannelService) { AuthorizationService = authorizationService; DesignatedChannelService = designatedChannelService; }
public ChannelController(DiscordSocketClient client, IAuthorizationService modixAuth, IDesignatedChannelService channelService) : base(client, modixAuth) { ChannelService = channelService; }
public DesignatedChannelModule(IAuthorizationService authorizationService, IDesignatedChannelService designatedChannelService, IOptions <ModixConfig> config) { AuthorizationService = authorizationService; DesignatedChannelService = designatedChannelService; Config = config.Value; }