Added new rate limits

This commit is contained in:
RogueException
2016-10-11 23:13:28 -03:00
parent 37f0d8c7e8
commit bf10529f80
21 changed files with 715 additions and 367 deletions

View File

@@ -233,7 +233,7 @@ namespace Discord.API
var requestTracker = new RpcRequest<TResponse>(options);
_requests[guid] = requestTracker;
await _requestQueue.SendAsync(new WebSocketRequest(_webSocketClient, bytes, true, options)).ConfigureAwait(false);
await _requestQueue.SendAsync(new WebSocketRequest(_webSocketClient, null, bytes, true, options)).ConfigureAwait(false);
await _sentRpcMessageEvent.InvokeAsync(cmd).ConfigureAwait(false);
return await requestTracker.Promise.Task.ConfigureAwait(false);
}