Fixed null rest logger exceptions
This commit is contained in:
@@ -27,6 +27,8 @@ namespace Discord.Net.Rest
|
|||||||
{
|
{
|
||||||
_config = config;
|
_config = config;
|
||||||
_baseUrl = baseUrl;
|
_baseUrl = baseUrl;
|
||||||
|
Logger = logger;
|
||||||
|
|
||||||
_rateLimitLock = new object();
|
_rateLimitLock = new object();
|
||||||
_client = new HttpClient(new HttpClientHandler
|
_client = new HttpClient(new HttpClientHandler
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ namespace Discord.Net.Rest
|
|||||||
public RestSharpEngine(DiscordConfig config, string baseUrl, Logger logger)
|
public RestSharpEngine(DiscordConfig config, string baseUrl, Logger logger)
|
||||||
{
|
{
|
||||||
_config = config;
|
_config = config;
|
||||||
|
Logger = logger;
|
||||||
|
|
||||||
_rateLimitLock = new object();
|
_rateLimitLock = new object();
|
||||||
_client = new RestSharp.RestClient(baseUrl)
|
_client = new RestSharp.RestClient(baseUrl)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user