-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
database π¦Related to the Byte database serviceRelated to the Byte database serviceenhancement βThis is a brand new feature or requestThis is a brand new feature or requesthelp wanted πExtra attention is neededExtra attention is neededweb πRelated to the Byte web serviceRelated to the Byte web service
Description
Summary
Introduce a helper method to reduce duplication in config retrieval:
Basic Example
async def _get_config(self, service: Any, guild_id: int, schema_class: Type[Any]) -> Any:
result = await service.get(guild_id, id_attribute="guild_id")
return service.to_schema(schema_class, result)Drawbacks and Impact
No response
Unresolved questions
No response
Metadata
Metadata
Assignees
Labels
database π¦Related to the Byte database serviceRelated to the Byte database serviceenhancement βThis is a brand new feature or requestThis is a brand new feature or requesthelp wanted πExtra attention is neededExtra attention is neededweb πRelated to the Byte web serviceRelated to the Byte web service