Skip to content

Wumpy-gateway v0.2.0

Compare
Choose a tag to compare
@Bluenix2 Bluenix2 released this 01 May 18:58
ecdb2b0

This is a pretty significant minor version bump since the original v0.1.0 release adding a bunch of features that have been worked on since.

The gateway is much more stable now and should handle any spontaneous failures.

Changes

Breaking changes

  • Removed the Shard.connect() classmethod in favour of instantiating the Shard

Features

  • Add shard_id kwarg to manage multiple shards
  • Ratelimit gateway commands with replaceable ratelimiter
    • Add ratelimiter and max_concurrency kwargs calculating ratelimit bucket for shard
  • Allow specifying the gateway encoding
  • Allow setting up custom SSLContext for the underlying TLS-enabled TCP socket (useful for testing)
  • Setup complete logging with the built-in logging module

Fixes

  • Start expontentially backoff on reconnecting
  • Handle all kinds of abrupt disconnect errors
  • Handle discord-gateway signaling a closure when sending it None
  • Stop reconnecting on terminal error codes that needs raising