vsTerminus / Mojo-Discord

Perl Modules that implement parts of the Discord API. Intended for Text Chat Bots.
MIT License
33 stars 10 forks source link

Add new Gateway Close Event Codes #18

Closed incognico closed 3 years ago

incognico commented 4 years ago

4011 | Sharding required | The session would have handled too many guilds - you are required to shard your connection in order to connect. 4012 | Invalid API version | You sent an invalid version for the gateway. 4013 | Invalid intent(s) | You sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise value. 4014 | Disallowed intent(s) | You sent a disallowed intent for a Gateway Intent. You may have tried to specify an intent that you have not enabled or are not whitelisted for.

Reads like 4011 and 4012 should not try to reconnect or initiate a new session at all.

incognico commented 4 years ago

4013 and 4014 are related to #25