serenity-rs / poise

Discord bot command framework for serenity, with advanced features like edit tracking and flexible argument parsing
MIT License
624 stars 111 forks source link

Allow destructuring in command parameters #217

Closed mattfbacon closed 9 months ago

mattfbacon commented 10 months ago

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.