コード例 #1
0
 public LogChannelService(IDiscordClient client, DbConnectionFactory conn, EmbedService embed, ILogger logger)
 {
     this._client = client;
     this._conn   = conn;
     this._embed  = embed;
     _logger      = logger.ForContext <LogChannelService>();
 }
コード例 #2
0
 public LogChannelService(IDiscordClient client, EmbedService embed, ILogger logger, IDataStore data)
 {
     _client = client;
     _embed  = embed;
     _data   = data;
     _logger = logger.ForContext <LogChannelService>();
 }
コード例 #3
0
 public ReactionAdded(EmbedService embeds, ILogger logger, IDatabase db, ModelRepository repo)
 {
     _embeds = embeds;
     _db     = db;
     _repo   = repo;
     _logger = logger.ForContext <ReactionAdded>();
 }
コード例 #4
0
 public Member(EmbedService embeds, IDatabase db, ModelRepository repo, HttpClient client)
 {
     _embeds = embeds;
     _db     = db;
     _repo   = repo;
     _client = client;
 }
コード例 #5
0
 public LogChannelService(EmbedService embed, ILogger logger, IDatabase db, ModelRepository repo)
 {
     _embed  = embed;
     _db     = db;
     _repo   = repo;
     _logger = logger.ForContext <LogChannelService>();
 }
コード例 #6
0
 public LogChannelService(EmbedService embed, ILogger logger, DiscordRestClient rest, IDatabase db, IDataStore data)
 {
     _embed  = embed;
     _rest   = rest;
     _db     = db;
     _data   = data;
     _logger = logger.ForContext <LogChannelService>();
 }
コード例 #7
0
 public ReactionAdded(EmbedService embeds, ILogger logger, IDatabase db, ModelRepository repo, CommandMessageService commandMessageService)
 {
     _embeds = embeds;
     _db     = db;
     _repo   = repo;
     _commandMessageService = commandMessageService;
     _logger = logger.ForContext <ReactionAdded>();
 }
コード例 #8
0
 public ProxyService(DiscordShardedClient client, LogChannelService logChannel, IDataStore data, EmbedService embeds, ILogger logger, WebhookExecutorService webhookExecutor)
 {
     _client          = client;
     _logChannel      = logChannel;
     _data            = data;
     _embeds          = embeds;
     _webhookExecutor = webhookExecutor;
     _logger          = logger.ForContext <ProxyService>();
 }
コード例 #9
0
 public Misc(BotConfig botConfig, IMetrics metrics, CpuStatService cpu, ShardInfoService shards, IDataStore data, EmbedService embeds)
 {
     _botConfig = botConfig;
     _metrics   = metrics;
     _cpu       = cpu;
     _shards    = shards;
     _data      = data;
     _embeds    = embeds;
 }
コード例 #10
0
 public Misc(BotConfig botConfig, IMetrics metrics, CpuStatService cpu, ShardInfoService shards, EmbedService embeds, ModelRepository repo, IDatabase db)
 {
     _botConfig = botConfig;
     _metrics   = metrics;
     _cpu       = cpu;
     _shards    = shards;
     _embeds    = embeds;
     _repo      = repo;
     _db        = db;
 }
コード例 #11
0
 public LogChannelService(EmbedService embed, ILogger logger, IDatabase db, ModelRepository repo, IDiscordCache cache, DiscordApiClient rest, Bot bot)
 {
     _embed  = embed;
     _db     = db;
     _repo   = repo;
     _cache  = cache;
     _rest   = rest;
     _bot    = bot;
     _logger = logger.ForContext <LogChannelService>();
 }
コード例 #12
0
 public ReactionAdded(ILogger logger, IDatabase db, ModelRepository repo, CommandMessageService commandMessageService, IDiscordCache cache, Bot bot, DiscordApiClient rest, EmbedService embeds)
 {
     _db   = db;
     _repo = repo;
     _commandMessageService = commandMessageService;
     _cache  = cache;
     _bot    = bot;
     _rest   = rest;
     _embeds = embeds;
     _logger = logger.ForContext <ReactionAdded>();
 }
コード例 #13
0
 public ProxyService(IDiscordClient client, LogChannelService logChannel, IDataStore data, EmbedService embeds, ILogger logger, ProxyCacheService cache, WebhookExecutorService webhookExecutor, DbConnectionFactory conn)
 {
     _client          = client;
     _logChannel      = logChannel;
     _data            = data;
     _embeds          = embeds;
     _cache           = cache;
     _webhookExecutor = webhookExecutor;
     _conn            = conn;
     _logger          = logger.ForContext <ProxyService>();
 }
コード例 #14
0
        public ProxyService(IDiscordClient client, LogChannelService logChannel, MessageStore messageStorage, EmbedService embeds, ILogger logger, ProxyCacheService cache, WebhookExecutorService webhookExecutor)
        {
            _client          = client;
            _logChannel      = logChannel;
            _messageStorage  = messageStorage;
            _embeds          = embeds;
            _cache           = cache;
            _webhookExecutor = webhookExecutor;
            _logger          = logger.ForContext <ProxyService>();

            _httpClient = new HttpClient();
        }
コード例 #15
0
ファイル: Misc.cs プロジェクト: guccigang17/PluralKit
 public Misc(BotConfig botConfig, IMetrics metrics, CpuStatService cpu, ShardInfoService shards, EmbedService embeds, ModelRepository repo, IDatabase db, IDiscordCache cache, DiscordApiClient rest, Bot bot, Cluster cluster)
 {
     _botConfig = botConfig;
     _metrics   = metrics;
     _cpu       = cpu;
     _shards    = shards;
     _embeds    = embeds;
     _repo      = repo;
     _db        = db;
     _cache     = cache;
     _rest      = rest;
     _bot       = bot;
     _cluster   = cluster;
 }
コード例 #16
0
ファイル: ReactionAdded.cs プロジェクト: BakaKiller/PluralKit
 public ReactionAdded(IDataStore data, EmbedService embeds)
 {
     _data   = data;
     _embeds = embeds;
 }
コード例 #17
0
ファイル: System.cs プロジェクト: PrincessAmi/ModdedPluralKit
 public System(EmbedService embeds, IDataStore data)
 {
     _embeds = embeds;
     _data   = data;
 }
コード例 #18
0
ファイル: System.cs プロジェクト: BeeFox-sys/PluralKit
 public System(EmbedService embeds, IDatabase db, ModelRepository repo)
 {
     _embeds = embeds;
     _db     = db;
     _repo   = repo;
 }
コード例 #19
0
 public Groups(IDatabase db, ModelRepository repo, EmbedService embeds)
 {
     _db     = db;
     _repo   = repo;
     _embeds = embeds;
 }
コード例 #20
0
 public ReactionAdded(IDataStore data, EmbedService embeds, ILogger logger)
 {
     _data   = data;
     _embeds = embeds;
     _logger = logger.ForContext <ReactionAdded>();
 }
コード例 #21
0
ファイル: Member.cs プロジェクト: PrincessAmi/ModdedPluralKit
 public Member(IDataStore data, EmbedService embeds)
 {
     _data   = data;
     _embeds = embeds;
 }
コード例 #22
0
 public SystemEdit(IDataStore data, EmbedService embeds, IDatabase db)
 {
     _data   = data;
     _embeds = embeds;
     _db     = db;
 }
コード例 #23
0
 public SystemFront(IDataStore data, EmbedService embeds)
 {
     _data   = data;
     _embeds = embeds;
 }
コード例 #24
0
 public Member(IDataStore data, EmbedService embeds, IDatabase db)
 {
     _data   = data;
     _embeds = embeds;
     _db     = db;
 }