Browse Source

Fixed a few issues

pull/1585/head
quinchs 5 years ago
parent
commit
e4c70d7ad1
2 changed files with 3 additions and 14 deletions
  1. +2
    -13
      src/Discord.Net.WebSocket/DiscordSocketClient.cs
  2. +1
    -1
      src/Discord.Net.WebSocket/Entities/Invites/ISocketInvite.cs

+ 2
- 13
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -275,8 +275,7 @@ namespace Discord.WebSocket
await heartbeatTask.ConfigureAwait(false);
_heartbeatTask = null;

while (_heartbeatTimes.TryDequeue(out _))
{ }
while (_heartbeatTimes.TryDequeue(out _)) { }
_lastMessageTime = 0;

await _gatewayLogger.DebugAsync("Waiting for guild downloader").ConfigureAwait(false);
@@ -287,8 +286,7 @@ namespace Discord.WebSocket

//Clear large guild queue
await _gatewayLogger.DebugAsync("Clearing large guild queue").ConfigureAwait(false);
while (_largeGuilds.TryDequeue(out _))
{ }
while (_largeGuilds.TryDequeue(out _)) { }

//Raise virtual GUILD_UNAVAILABLEs
await _gatewayLogger.DebugAsync("Raising virtual GuildUnavailables").ConfigureAwait(false);
@@ -1706,12 +1704,7 @@ namespace Discord.WebSocket
await TimedInvokeAsync(_inviteCreatedEvent, nameof(InviteCreated), invite).ConfigureAwait(false);
}
}
else
{
//add else
}
}

}
break;
case "INVITE_DELETE":
@@ -1738,10 +1731,6 @@ namespace Discord.WebSocket
await TimedInvokeAsync(_inviteDeletedEvent, nameof(InviteDeleted), cache).ConfigureAwait(false);
}
}
else
{
//add else
}
}

}


+ 1
- 1
src/Discord.Net.WebSocket/Entities/Invites/ISocketInvite.cs View File

@@ -16,7 +16,7 @@ namespace Discord.WebSocket
/// </returns>
string Code { get; }
/// <summary>
/// Gets the URL used to accept this invite using <see cref="Code"/>.
/// Gets the URL used to accept this invite
/// </summary>
/// <returns>
/// A string containing the full invite URL (e.g. <c>https://discord.gg/FTqNnyS</c>).


Loading…
Cancel
Save