diff options
| author | orlnub123 <[email protected]> | 2018-08-23 21:58:25 +0300 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-08-23 20:45:47 -0400 |
| commit | 9bc48b21f5c41d3d618e535a639e6011e039d55e (patch) | |
| tree | d539f9026b2a560587b3bcfe9c52eff794b1b46b | |
| parent | Fix typo in core.Command docstring (diff) | |
| download | discord.py-9bc48b21f5c41d3d618e535a639e6011e039d55e.tar.xz discord.py-9bc48b21f5c41d3d618e535a639e6011e039d55e.zip | |
Fix send_as_json not dispatching socket_raw_send
| -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 a1f77193..fe3d63c6 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -456,7 +456,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 e: if not self._can_handle_close(e.code): raise ConnectionClosed(e, shard_id=self.shard_id) from e |