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