Skip to content

Enhancement: Guild config helperΒ #88

@JacobCoffee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions