Browse Source

Resolves #1024 (#1031)

- Replace 'var _' with simple '_' discard as well.
tags/2.0
Still Hsu Christopher F 7 years ago
parent
commit
3631886d2b
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 5
- 3
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -479,14 +479,14 @@ namespace Discord.WebSocket
await TimedInvokeAsync(_readyEvent, nameof(Ready)).ConfigureAwait(false);
await _gatewayLogger.InfoAsync("Ready").ConfigureAwait(false);
});
var _ = _connection.CompleteAsync();
_ = _connection.CompleteAsync();
}
break;
case "RESUMED":
{
await _gatewayLogger.DebugAsync("Received Dispatch (RESUMED)").ConfigureAwait(false);

var _ = _connection.CompleteAsync();
_ = _connection.CompleteAsync();

//Notify the client that these guilds are available again
foreach (var guild in State.Guilds)
@@ -1095,8 +1095,10 @@ namespace Discord.WebSocket
else if (channel is SocketGroupChannel)
author = (channel as SocketGroupChannel).GetOrAddUser(data.Author.Value);
else
{
await UnknownChannelUserAsync(type, data.Author.Value.Id, channel.Id).ConfigureAwait(false);
return;
return;
}
}

var msg = SocketMessage.Create(this, State, author, channel, data);


Loading…
Cancel
Save