Added DiscordShardedClient, some DiscordSocketClient fixes.

This commit is contained in:
RogueException
2017-01-01 09:03:35 -04:00
parent fc8d2b3155
commit dac51db299
9 changed files with 633 additions and 20 deletions

View File

@@ -178,6 +178,11 @@ namespace Discord.API
options = RequestOptions.CreateOrClone(options);
return await SendAsync<GetGatewayResponse>("GET", () => "gateway", new BucketIds(), options: options).ConfigureAwait(false);
}
public async Task<GetBotGatewayResponse> GetBotGatewayAsync(RequestOptions options = null)
{
options = RequestOptions.CreateOrClone(options);
return await SendAsync<GetBotGatewayResponse>("GET", () => "gateway/bot", new BucketIds(), options: options).ConfigureAwait(false);
}
public async Task SendIdentifyAsync(int largeThreshold = 100, bool useCompression = true, int shardID = 0, int totalShards = 1, RequestOptions options = null)
{
options = RequestOptions.CreateOrClone(options);