diff --git a/src/Discord.Net.Core/IDiscordClient.cs b/src/Discord.Net.Core/IDiscordClient.cs index 4f41b138d..a383c37da 100644 --- a/src/Discord.Net.Core/IDiscordClient.cs +++ b/src/Discord.Net.Core/IDiscordClient.cs @@ -37,6 +37,6 @@ namespace Discord Task GetWebhookAsync(ulong id, RequestOptions options = null); - Task GetRecommendedShardCount(RequestOptions options = null); + Task GetRecommendedShardCountAsync(RequestOptions options = null); } } diff --git a/src/Discord.Net.Rest/BaseDiscordClient.cs b/src/Discord.Net.Rest/BaseDiscordClient.cs index 159f74dc8..f8642b96c 100644 --- a/src/Discord.Net.Rest/BaseDiscordClient.cs +++ b/src/Discord.Net.Rest/BaseDiscordClient.cs @@ -126,8 +126,8 @@ namespace Discord.Rest public void Dispose() => Dispose(true); /// - public Task GetRecommendedShardCount(RequestOptions options = null) - => ClientHelper.GetRecommendShardCount(this, options); + public Task GetRecommendedShardCountAsync(RequestOptions options = null) + => ClientHelper.GetRecommendShardCountAsync(this, options); //IDiscordClient ConnectionState IDiscordClient.ConnectionState => ConnectionState.Disconnected; diff --git a/src/Discord.Net.Rest/ClientHelper.cs b/src/Discord.Net.Rest/ClientHelper.cs index 5a97b70d7..fb0a2e622 100644 --- a/src/Discord.Net.Rest/ClientHelper.cs +++ b/src/Discord.Net.Rest/ClientHelper.cs @@ -164,7 +164,7 @@ namespace Discord.Rest return models.Select(x => RestVoiceRegion.Create(client, x)).FirstOrDefault(x => x.Id == id); } - public static async Task GetRecommendShardCount(BaseDiscordClient client, RequestOptions options) + public static async Task GetRecommendShardCountAsync(BaseDiscordClient client, RequestOptions options) { var response = await client.ApiClient.GetBotGatewayAsync(options); return response.Shards; diff --git a/src/Discord.Net.WebSocket/DiscordShardedClient.cs b/src/Discord.Net.WebSocket/DiscordShardedClient.cs index c5b2b3c64..ad89067df 100644 --- a/src/Discord.Net.WebSocket/DiscordShardedClient.cs +++ b/src/Discord.Net.WebSocket/DiscordShardedClient.cs @@ -75,7 +75,7 @@ namespace Discord.WebSocket { if (_automaticShards) { - var shardCount = await GetRecommendedShardCount().ConfigureAwait(false); + var shardCount = await GetRecommendedShardCountAsync().ConfigureAwait(false); _shardIds = Enumerable.Range(0, shardCount).ToArray(); _totalShards = _shardIds.Length; _shards = new DiscordSocketClient[_shardIds.Length];