Esempio n. 1
0
 private static API.DiscordRestApiClient CreateApiClient(DiscordRestConfig config)
 => new API.DiscordRestApiClient(config.RestClientProvider, DiscordRestConfig.UserAgent);
Esempio n. 2
0
 public DiscordRestClient(DiscordRestConfig config) : base(config, CreateApiClient(config))
 {
 }
Esempio n. 3
0
 private static API.DiscordRestApiClient CreateApiClient(DiscordRestConfig config)
 => new API.DiscordRestApiClient(config.RestClientProvider,
                                 DiscordRestConfig.UserAgent,
                                 rateLimitPrecision: config.RateLimitPrecision,
                                 useSystemClock: config.UseSystemClock);
Esempio n. 4
0
 // used for socket client rest access
 internal DiscordRestClient(DiscordRestConfig config, API.DiscordRestApiClient api) : base(config, api)
 {
 }
Esempio n. 5
0
 private static API.DiscordRestApiClient CreateApiClient(DiscordRestConfig config)
 => new API.DiscordRestApiClient(config.RestClientProvider, requestQueue: new RequestQueue());