diff options
| author | Hornwitser <[email protected]> | 2019-01-15 16:04:13 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-01-28 22:22:51 -0500 |
| commit | 883ae8fe806a33bd88866e933c5e96f00d5d5416 (patch) | |
| tree | ca68b5747bced401a47562fce798be1f510c3d21 | |
| parent | Bumped copyright years to 2019. (diff) | |
| download | discord.py-883ae8fe806a33bd88866e933c5e96f00d5d5416.tar.xz discord.py-883ae8fe806a33bd88866e933c5e96f00d5d5416.zip | |
Fix accidental regression of 9bc48b2 in fa46b07
Occured due to difficult to spot difference in git merge when rebasing
the lint changes.
| -rw-r--r-- | discord/gateway.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index edfc185a..eb17c2ef 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -461,7 +461,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): async def send_as_json(self, data): try: - await super().send(utils.to_json(data)) + await self.send(utils.to_json(data)) except websockets.exceptions.ConnectionClosed as exc: if not self._can_handle_close(exc.code): raise ConnectionClosed(exc, shard_id=self.shard_id) from exc |