- Replace 'var _' with simple '_' discard as well.
This commit is contained in:
Still Hsu
2018-04-29 23:14:34 +08:00
committed by Christopher F
parent 9b29c004fa
commit 3631886d2b

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);