aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2019-01-15 16:04:13 +0100
committerRapptz <[email protected]>2019-01-28 22:22:51 -0500
commit883ae8fe806a33bd88866e933c5e96f00d5d5416 (patch)
treeca68b5747bced401a47562fce798be1f510c3d21
parentBumped copyright years to 2019. (diff)
downloaddiscord.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.py2
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