Maxine
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
discord/shard.py
|
|
@ -517,10 +517,10 @@ class AutoShardedClient(Client): |
|
|
|
if item.type == EventType.close: |
|
|
|
await self.close() |
|
|
|
if isinstance(item.error, ConnectionClosed): |
|
|
|
if item.error.code != 1000: |
|
|
|
raise item.error |
|
|
|
if item.error.code == 4014: |
|
|
|
raise PrivilegedIntentsRequired(item.shard.id) from None |
|
|
|
if item.error.code != 1000: |
|
|
|
raise item.error |
|
|
|
return |
|
|
|
elif item.type in (EventType.identify, EventType.resume): |
|
|
|
await item.shard.reidentify(item.error) |
|
|
|