Ejemplo n.º 1
0
 public DiscordRestAvailabilityEndpoint(
     IDiscordRestClient discordClient,
     ILogger <DiscordRestAvailabilityEndpoint> logger)
 {
     _discordClient = discordClient;
     _logger        = logger;
 }
Ejemplo n.º 2
0
 public GetPointsCommandHandler(
     IUserPointsRepository userPointsRepository,
     IDiscordRestClient discordRestClient)
 {
     _userPointsRepository = userPointsRepository;
     _discordRestClient    = discordRestClient;
 }
Ejemplo n.º 3
0
 public ReadyEventHandler(
     IDiscordRestClient discordRestClient,
     IClientInfoRepository clientInfoRepository)
 {
     _discordRestClient    = discordRestClient;
     _clientInfoRepository = clientInfoRepository;
 }
 public RockPaperScissorsCommandHandler(
     IUserPointsRepository userPointsRepository,
     IDiscordRestClient discordRestClient)
 {
     _userPointsRepository = userPointsRepository;
     _discordRestClient    = discordRestClient;
 }
Ejemplo n.º 5
0
 public CommandDispatcher(
     IComponentContext component,
     IDiscordRestClient discordRestClient,
     ILogger <CommandDispatcher> logger)
 {
     _component         = component;
     _discordRestClient = discordRestClient;
     _logger            = logger;
 }
Ejemplo n.º 6
0
 public RankingCommandHandler(
     IUserPointsRepository userPointsRepository,
     IDiscordRestClient discordRestClient,
     IGuildRepository guildRepository)
 {
     _userPointsRepository = userPointsRepository;
     _discordRestClient    = discordRestClient;
     _guildRepository      = guildRepository;
 }
Ejemplo n.º 7
0
 public BlackjackCommandHandler(
     IDiscordRestClient discordRestClient,
     IGuildRepository guildRepository,
     IUserPointsRepository usersPointsRepository,
     IBlackjackRepository blackjackRepository,
     ITrackedMessageRepository trackedMessageRepository)
 {
     _discordRestClient        = discordRestClient;
     _guildRepository          = guildRepository;
     _usersPointsRepository    = usersPointsRepository;
     _blackjackRepository      = blackjackRepository;
     _trackedMessageRepository = trackedMessageRepository;
 }
Ejemplo n.º 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>();
 }
Ejemplo n.º 9
0
 public NotFoundCommandHandler(IDiscordRestClient discordRestClient,
                               IGuildRepository guildRepository)
 {
     _discordRestClient = discordRestClient;
     _guildRepository   = guildRepository;
 }
Ejemplo n.º 10
0
 public PingCommandHandler(IDiscordRestClient discordRestClient)
 {
     _discordRestClient = discordRestClient;
 }
Ejemplo n.º 11
0
 public MonsterCommandHandler(IDiscordRestClient discordRestClient)
 {
     _discordRestClient = discordRestClient;
 }
Ejemplo n.º 12
0
 public DiscordUserProvider(IDiscordRestClient restClient)
 {
     _restClient = restClient;
 }
Ejemplo n.º 13
0
 public DiscordUserProvider(DiscordUserProviderOptions options)
 {
     _restClient = new DiscordRestClient(options);
 }
Ejemplo n.º 14
0
 public HelpCommandHandler(IDiscordRestClient discordRestClient)
 {
     _discordRestClient = discordRestClient;
 }
 public MessageReactionRemoveEventHandler(IDiscordRestClient discordRestClient,
                                          IGuildRepository guildRepository)
 {
     _discordRestClient = discordRestClient;
     _guildRepository   = guildRepository;
 }
Ejemplo n.º 16
0
 public InternalErrorCommandHandler(IDiscordRestClient discordRestClient,
                                    IGuildRepository guildRepository)
 {
     _discordRestClient = discordRestClient;
     _guildRepository   = guildRepository;
 }