Fixed wrong string conversions during caching on PycordUser

This commit is contained in:
2025-05-06 22:45:06 +02:00
parent 5f9ef163e1
commit c0451de27a
4 changed files with 17 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ class PycordGuild(BaseCacheable):
if cached_entry is not None:
return cls(**cls._entry_from_cache(cached_entry))
db_entry = await cls.__collection__.find_one({"id": guild_id})
db_entry: Dict[str, Any] | None = await cls.__collection__.find_one({"id": guild_id})
if db_entry is None:
if not allow_creation: