erin.db.drivers package¶
Submodules¶
erin.db.drivers.mongo module¶
-
class
erin.db.drivers.mongo.
MongoClient
(config, bot=None, *args, **kwargs)[source]¶ Bases:
motor.motor_asyncio.AsyncIOMotorClient
,erin.db.abc.DatabaseDriverBase
-
get
(entity, state)[source]¶ Grabs the value stored for an entity’s state.
Parameters: - entity – Any discord object with an id attribute
- state – An event passed as str
Returns: Returns the state’s value if found or returns None
-