Skip to content

Type-hinted message listener functions #1035

@DonDebonair

Description

@DonDebonair

Currently, message listener functions are called with a Message object and the named regex groups as keyword arguments. It would be nice to allow type hints so that these named groups can automatically be cast/parsed into the right type.

FastAPI could provide nice inspiration for how to do this parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions