Save self user ID in session file

Should result in one less request after connecting,
as there is no longer a need to fetch the self user.
This commit is contained in:
Lonami Exo
2023-04-06 14:18:42 +02:00
parent 88bc6a46a6
commit a657ae0134
4 changed files with 16 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ class EntityCache:
self,
hash_map: dict = _sentinel,
self_id: int = None,
self_bot: bool = False
self_bot: bool = None
):
self.hash_map = {} if hash_map is _sentinel else hash_map
self.self_id = self_id