Skip to content

Enhancement: Guild config helper #88

Description

@JacobCoffee

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    database 📦Related to the Byte database serviceenhancement ➕This is a brand new feature or requesthelp wanted 🆘Extra attention is neededweb 🌐Related to the Byte web service

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions