예제 #1
0
 /// <summary>
 ///     Creates a new <see cref="Connection" />.
 /// </summary>
 /// <param name="client">The <see cref="DiscordShardedClient" /> that will be used.</param>
 /// <param name="clientLogHandler">The <see cref="IClientLogHandler" /> that will log all the log messages.</param>
 /// <param name="commandHandler">The <see cref="ICommandHandler" /> that will handle all the commands.</param>
 /// <param name="prefixService">The <see cref="IPrefixService" /> That will be used for the custom prefixes.</param>
 public Connection(DiscordShardedClient client, IClientLogHandler clientLogHandler, ICommandHandler commandHandler, IPrefixService prefixService)
 {
     _client           = client;
     _clientLogHandler = clientLogHandler;
     _commandHandler   = commandHandler;
     _prefixService    = prefixService;
 }
예제 #2
0
 /// <summary>
 /// Creates a new <see cref="Connection"/>.
 /// </summary>
 /// <param name="client">The <see cref="DiscordShardedClient"/> that will be used.</param>
 /// <param name="clientLogHandler">The <see cref="IClientLogHandler"/> that will log all the log messages.</param>
 /// <param name="commandHandler">The <see cref="ICommandHandler"/> that will handle all the commands.</param>
 /// <param name="prefixService">The <see cref="IPrefixService"/> That will be used for the custom prefixes.</param>
 /// <param name="botListsUpdateTimer">The timer that will be used to active UpdateBotListStatsAsync().</param>
 public Connection(DiscordShardedClient client, IClientLogHandler clientLogHandler, ICommandHandler commandHandler, IPrefixService prefixService, DiscordBotListsUpdateTimer botListsUpdateTimer)
 {
     _client              = client;
     _clientLogHandler    = clientLogHandler;
     _commandHandler      = commandHandler;
     _prefixService       = prefixService;
     _botListsUpdateTimer = botListsUpdateTimer;
 }