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

Generate getter fn for command arguments #135

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

jontze
Copy link
Owner

@jontze jontze commented Dec 8, 2023

This PR extends the code generation to generate getter functions for the command arguments. These functions return the correct rust type for the selected discord/serenity arg types. Further they will be wrapped in an Option if the args are marked as optional.

@jontze jontze added refactor Something was changed, but the functionality is the same rust Pull requests that update Rust code labels Dec 8, 2023
@jontze jontze self-assigned this Dec 8, 2023
@jontze jontze marked this pull request as ready for review December 8, 2023 20:23
@jontze jontze enabled auto-merge December 8, 2023 20:24
@jontze jontze merged commit c12167c into develop Dec 8, 2023
4 checks passed
@jontze jontze deleted the chore/reduce-command-boilerplate branch January 15, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Something was changed, but the functionality is the same rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant