Another crash fix

This commit is contained in:
RogueException
2015-10-08 13:50:44 -03:00
parent ba9559de78
commit a04f3af9b8
2 changed files with 1 additions and 5 deletions

View File

@@ -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

View File

@@ -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);