Cache outgoing presence data if disconnected (#705)

This resolves #702
This commit is contained in:
Christopher F
2017-06-23 10:29:45 -04:00
committed by RogueException
parent fb0a056d76
commit 5f04e2beba

View File

@@ -360,7 +360,7 @@ namespace Discord.WebSocket
private async Task SendStatusAsync()
{
if (CurrentUser == null)
throw new InvalidOperationException("Presence data cannot be sent before the client has logged in.");
return;
var game = Game;
var status = Status;
var statusSince = _statusSince;