Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto annotate all Tanjun commands and other decorator shortcuts #48

Open
pmdevita opened this issue Nov 11, 2023 · 0 comments
Open

Auto annotate all Tanjun commands and other decorator shortcuts #48

pmdevita opened this issue Nov 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@pmdevita
Copy link
Owner

Since atsume officially recommends using type annotations for commands, it may be useful to add a shortcut to avoid having to add the @tanjun.annotated.with_annotated_args(follow_wrapped=True) decorator to every command. This could be configured per component via its ComponentConfig.

It might also be interesting to have a shortcut decorator to configure both a slash and a message command in one line.

@pmdevita pmdevita added the enhancement New feature or request label Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant