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

Allow destructuring in command parameters #217

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

mattfbacon
Copy link
Contributor

This creates custom identifiers like poise_param_0 for the generated code. This also works around the issue in #216 which was resolved there by disabling the lint, but this addresses the underlying issue. As such, this also reverts that PR.

A parameter with a pattern that is not an identifier has to have an explicit rename attribute.

@kangalio kangalio merged commit e6a7337 into serenity-rs:current Nov 17, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants