Beispiel #1
0
 public DiscordRestAvailabilityEndpoint(
     IDiscordRestClient discordClient,
     ILogger <DiscordRestAvailabilityEndpoint> logger)
 {
     _discordClient = discordClient;
     _logger        = logger;
 }
 public GetPointsCommandHandler(
     IUserPointsRepository userPointsRepository,
     IDiscordRestClient discordRestClient)
 {
     _userPointsRepository = userPointsRepository;
     _discordRestClient    = discordRestClient;
 }
Beispiel #3
0
 public ReadyEventHandler(
     IDiscordRestClient discordRestClient,
     IClientInfoRepository clientInfoRepository)
 {
     _discordRestClient    = discordRestClient;
     _clientInfoRepository = clientInfoRepository;
 }
 public RockPaperScissorsCommandHandler(
     IUserPointsRepository userPointsRepository,
     IDiscordRestClient discordRestClient)
 {
     _userPointsRepository = userPointsRepository;
     _discordRestClient    = discordRestClient;
 }
Beispiel #5
0
 public CommandDispatcher(
     IComponentContext component,
     IDiscordRestClient discordRestClient,
     ILogger <CommandDispatcher> logger)
 {
     _component         = component;
     _discordRestClient = discordRestClient;
     _logger            = logger;
 }
Beispiel #6
0
 public RankingCommandHandler(
     IUserPointsRepository userPointsRepository,
     IDiscordRestClient discordRestClient,
     IGuildRepository guildRepository)
 {
     _userPointsRepository = userPointsRepository;
     _discordRestClient    = discordRestClient;
     _guildRepository      = guildRepository;
 }
 public BlackjackCommandHandler(
     IDiscordRestClient discordRestClient,
     IGuildRepository guildRepository,
     IUserPointsRepository usersPointsRepository,
     IBlackjackRepository blackjackRepository,
     ITrackedMessageRepository trackedMessageRepository)
 {
     _discordRestClient        = discordRestClient;
     _guildRepository          = guildRepository;
     _usersPointsRepository    = usersPointsRepository;
     _blackjackRepository      = blackjackRepository;
     _trackedMessageRepository = trackedMessageRepository;
 }
Beispiel #8
0
 public ConnectionManager(
     ILogger <ConnectionManager> logger,
     IDiscordSocketClient discordSocketClient,
     IDiscordRestClient discordRestClient,
     IClientInfoRepository clientInfoRepository)
 {
     _logger = logger;
     _discordSocketClient = discordSocketClient;
     _discordSocketClient.MessageReceive += OnMessageReceive;
     _discordRestClient    = discordRestClient;
     _clientInfoRepository = clientInfoRepository;
     _heartbeatToken       = CancellationToken.None;
     _heartbeatTimes       = new ConcurrentQueue <long>();
 }
 public NotFoundCommandHandler(IDiscordRestClient discordRestClient,
                               IGuildRepository guildRepository)
 {
     _discordRestClient = discordRestClient;
     _guildRepository   = guildRepository;
 }
Beispiel #10
0
 public PingCommandHandler(IDiscordRestClient discordRestClient)
 {
     _discordRestClient = discordRestClient;
 }
Beispiel #11
0
 public MonsterCommandHandler(IDiscordRestClient discordRestClient)
 {
     _discordRestClient = discordRestClient;
 }
Beispiel #12
0
 public DiscordUserProvider(IDiscordRestClient restClient)
 {
     _restClient = restClient;
 }
Beispiel #13
0
 public DiscordUserProvider(DiscordUserProviderOptions options)
 {
     _restClient = new DiscordRestClient(options);
 }
Beispiel #14
0
 public HelpCommandHandler(IDiscordRestClient discordRestClient)
 {
     _discordRestClient = discordRestClient;
 }
 public MessageReactionRemoveEventHandler(IDiscordRestClient discordRestClient,
                                          IGuildRepository guildRepository)
 {
     _discordRestClient = discordRestClient;
     _guildRepository   = guildRepository;
 }
 public InternalErrorCommandHandler(IDiscordRestClient discordRestClient,
                                    IGuildRepository guildRepository)
 {
     _discordRestClient = discordRestClient;
     _guildRepository   = guildRepository;
 }