about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authormjk134 <57556877+mjk134@users.noreply.github.com>2022-07-11 19:56:34 +0000
committerGitHub <noreply@github.com>2022-07-11 19:56:34 +0000
commitb271f3b37c9a28ba9254f2a24c98cfcd65cb3c24 (patch)
treecc2750d71d5b620f04f76accf2a0692f2c619e72
parent79eec53d671e571e4cc2515caba334bd6bedbc7e (diff)
downloaddiscobra-b271f3b37c9a28ba9254f2a24c98cfcd65cb3c24.tar.gz
chore(client): Change send method of hearbeat + identify
-rw-r--r--discord/client.py4
-rw-r--r--discord/utils/__init__.py4
2 files changed, 5 insertions, 3 deletions
diff --git a/discord/client.py b/discord/client.py
index 3384657..d6cfd50 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -121,7 +121,7 @@ class Client:
             "op": 1,
             "d": None
         }
-        await self.gateway.send(json.dumps(heartbeat))
+        await self.send(heartbeat)
 
     async def identify(self):
         """
@@ -139,7 +139,7 @@ class Client:
                 }
             }
         }
-        await self.gateway.send(json.dumps(identify))
+        await self.send(identify)
 
     def event(self, coro: Optional[Callable[..., Coroutine[Any, Any, Any]]]=None, /) -> Optional[Callable[..., Coroutine[Any, Any, Any]]]:
         """
diff --git a/discord/utils/__init__.py b/discord/utils/__init__.py
index 7fdb52b..199f0c8 100644
--- a/discord/utils/__init__.py
+++ b/discord/utils/__init__.py
@@ -1 +1,3 @@
-from .event_emitter import *
\ No newline at end of file
+from .event_emitter import *
+from .exceptions import *
+from .rest import *
\ No newline at end of file