Per https://github.com/aaugustin/websockets/commit/0827eeee5bfe8b776dfae70642a336d324435027 the force keyword is no longer supported in close_connection. This causes the following error when trying to call it currently:
TypeError: close_connection() got an unexpected keyword argument 'force'
The dependances for discord.py are pinned.
https://before-you-ship.18f.gov/infrastructure/pinning-dependencies/
And as such are not designed to work on other versions.
It would be really nice if you made it compatible with websockets>=4.0 though, because otherwise distros won't be able to package websockets and discord.py in a consistent way.
Most helpful comment
It would be really nice if you made it compatible with websockets>=4.0 though, because otherwise distros won't be able to package websockets and discord.py in a consistent way.