| @@ -67,8 +67,7 @@ namespace Discord.Rpc | |||||
| public Task StartAsync() => _connection.StartAsync(); | public Task StartAsync() => _connection.StartAsync(); | ||||
| public Task StopAsync() => _connection.StopAsync(); | public Task StopAsync() => _connection.StopAsync(); | ||||
| private async Task OnConnectingAsync() | private async Task OnConnectingAsync() | ||||
| { | { | ||||
| await _rpcLogger.DebugAsync("Connecting ApiClient").ConfigureAwait(false); | await _rpcLogger.DebugAsync("Connecting ApiClient").ConfigureAwait(false); | ||||
| @@ -450,7 +449,7 @@ namespace Discord.Rpc | |||||
| //Others | //Others | ||||
| default: | default: | ||||
| await _rpcLogger.WarningAsync($"Unknown Dispatch ({evnt})").ConfigureAwait(false); | await _rpcLogger.WarningAsync($"Unknown Dispatch ({evnt})").ConfigureAwait(false); | ||||
| return; | |||||
| return; | |||||
| } | } | ||||
| break; | break; | ||||
| @@ -45,7 +45,7 @@ namespace Discord.WebSocket | |||||
| public abstract Task StopAsync(); | public abstract Task StopAsync(); | ||||
| public abstract Task SetStatusAsync(UserStatus status); | public abstract Task SetStatusAsync(UserStatus status); | ||||
| public abstract Task SetGameAsync(string name, string streamUrl = null, StreamType streamType = StreamType.NotStreaming); | public abstract Task SetGameAsync(string name, string streamUrl = null, StreamType streamType = StreamType.NotStreaming); | ||||
| // TODO: DownloadUsersAsync? | |||||
| public abstract Task DownloadUsersAsync(IEnumerable<IGuild> guilds); | |||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public Task<RestGuild> CreateGuildAsync(string name, IVoiceRegion region, Stream jpegIcon = null, RequestOptions options = null) | public Task<RestGuild> CreateGuildAsync(string name, IVoiceRegion region, Stream jpegIcon = null, RequestOptions options = null) | ||||
| @@ -2,8 +2,7 @@ | |||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| namespace Discord.WebSocket | namespace Discord.WebSocket | ||||
| { | |||||
| //TODO: Add event docstrings | |||||
| { | |||||
| public partial class DiscordShardedClient | public partial class DiscordShardedClient | ||||
| { | { | ||||
| /// <summary> | /// <summary> | ||||
| @@ -214,7 +214,7 @@ namespace Discord.WebSocket | |||||
| => _shards[0].GetVoiceRegion(id); | => _shards[0].GetVoiceRegion(id); | ||||
| /// <summary> Downloads the users list for the provided guilds, if they don't have a complete list. </summary> | /// <summary> Downloads the users list for the provided guilds, if they don't have a complete list. </summary> | ||||
| public async Task DownloadUsersAsync(IEnumerable<SocketGuild> guilds) | |||||
| public override async Task DownloadUsersAsync(IEnumerable<IGuild> guilds) | |||||
| { | { | ||||
| for (int i = 0; i < _shards.Length; i++) | for (int i = 0; i < _shards.Length; i++) | ||||
| { | { | ||||
| @@ -2,8 +2,7 @@ | |||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| namespace Discord.WebSocket | namespace Discord.WebSocket | ||||
| { | |||||
| //TODO: Add event docstrings | |||||
| { | |||||
| public partial class DiscordSocketClient | public partial class DiscordSocketClient | ||||
| { | { | ||||
| //General | //General | ||||
| @@ -231,7 +231,7 @@ namespace Discord.WebSocket | |||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public override async Task<RestApplication> GetApplicationInfoAsync(RequestOptions options = null) | public override async Task<RestApplication> GetApplicationInfoAsync(RequestOptions options = null) | ||||
| => _applicationInfo ?? (_applicationInfo = await ClientHelper.GetApplicationInfoAsync(this, options ?? RequestOptions.Default)); | |||||
| => _applicationInfo ?? (_applicationInfo = await ClientHelper.GetApplicationInfoAsync(this, options ?? RequestOptions.Default).ConfigureAwait(false)); | |||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public override SocketGuild GetGuild(ulong id) | public override SocketGuild GetGuild(ulong id) | ||||
| @@ -278,7 +278,7 @@ namespace Discord.WebSocket | |||||
| } | } | ||||
| /// <summary> Downloads the users list for the provided guilds, if they don't have a complete list. </summary> | /// <summary> Downloads the users list for the provided guilds, if they don't have a complete list. </summary> | ||||
| public async Task DownloadUsersAsync(IEnumerable<IGuild> guilds) | |||||
| public override async Task DownloadUsersAsync(IEnumerable<IGuild> guilds) | |||||
| { | { | ||||
| if (ConnectionState == ConnectionState.Connected) | if (ConnectionState == ConnectionState.Connected) | ||||
| { | { | ||||