public RegisterDiscordBotCommandHandler(IDiscordSocketClientProvider provider, IServiceScopeFactory factory, IConfiguration configuration, ILogger <RegisterDiscordBotCommandHandler> logger, IRedisService redis) { _provider = provider; _factory = factory; _roleHelper = new DiscordRoleHelper(configuration); _logger = logger; _redis = redis; _lockFactory = RedLockFactory.Create(new List <RedLockMultiplexer> { _redis.Connection() }); }