Another crash fix
This commit is contained in:
@@ -53,10 +53,6 @@ namespace Discord.API
|
||||
=> Send<ResponseT>(_patch, path, data);
|
||||
internal Task Patch(string path, object data)
|
||||
=> Send(_patch, path, data);
|
||||
internal Task<ResponseT> Patch<ResponseT>(string path) where ResponseT : class
|
||||
=> Send<ResponseT>(_patch, path);
|
||||
internal Task Patch(string path)
|
||||
=> Send(_patch, path);
|
||||
|
||||
private static readonly HttpMethod _post = HttpMethod.Post;
|
||||
internal Task<ResponseT> Post<ResponseT>(string path, object data) where ResponseT : class
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Discord
|
||||
|
||||
/// <summary> Initializes a new instance of the DiscordClient class. </summary>
|
||||
public DiscordClient(DiscordClientConfig config = null)
|
||||
: base(config)
|
||||
: base(config ?? new DiscordClientConfig())
|
||||
{
|
||||
_rand = new Random();
|
||||
_api = new DiscordAPIClient(_config.LogLevel, _config.UserAgent, _config.APITimeout);
|
||||
|
||||
Reference in New Issue
Block a user