|
|
@@ -1,4 +1,4 @@ |
|
|
|
#pragma warning disable CS0618 |
|
|
|
#pragma warning disable CS0618 |
|
|
|
using Discord.API; |
|
|
|
using Discord.API.Gateway; |
|
|
|
using Discord.Logging; |
|
|
@@ -416,11 +416,8 @@ namespace Discord.WebSocket |
|
|
|
|
|
|
|
_sessionId = null; |
|
|
|
_lastSeq = 0; |
|
|
|
bool retry = (bool)payload; |
|
|
|
if (retry) |
|
|
|
_connection.Reconnect(); //TODO: Untested |
|
|
|
else |
|
|
|
await ApiClient.SendIdentifyAsync(shardID: ShardId, totalShards: TotalShards).ConfigureAwait(false); |
|
|
|
|
|
|
|
await ApiClient.SendIdentifyAsync(shardID: ShardId, totalShards: TotalShards).ConfigureAwait(false); |
|
|
|
} |
|
|
|
break; |
|
|
|
case GatewayOpCode.Reconnect: |
|
|
|