-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat(macro): add group macro #267
base: current
Are you sure you want to change the base?
Commits on May 15, 2024
-
Adds the poise::group macro, which lets you group commands in a struct. Use `MyStruct::commands()` to get a vec of the commands.
Configuration menu - View commit details
-
Copy full SHA for 93caa09 - Browse repository at this point
Copy the full SHA 93caa09View commit details
Commits on May 16, 2024
-
Remove unnecessary use statement
Removes a redundant use std::vec;
Configuration menu - View commit details
-
Copy full SHA for 8aaaf6c - Browse repository at this point
Copy the full SHA 8aaaf6cView commit details -
Refactor group for readability
Moves the body of group into a separate function and removes match in favour of ?
Configuration menu - View commit details
-
Copy full SHA for 6da3446 - Browse repository at this point
Copy the full SHA 6da3446View commit details -
More direct comparison, without iter, map and format!.
Configuration menu - View commit details
-
Copy full SHA for 26498bf - Browse repository at this point
Copy the full SHA 26498bfView commit details -
Refactor is_command_attr for simplicity
Used a match over iterator items. Will now correctly handle paths with more than 2 segments.
Configuration menu - View commit details
-
Copy full SHA for 36bf529 - Browse repository at this point
Copy the full SHA 36bf529View commit details
Commits on May 17, 2024
-
Replace empty quote! with constructor
Instead of quote!(), use proc_macro2::TokenStream::new()
Configuration menu - View commit details
-
Copy full SHA for 5203830 - Browse repository at this point
Copy the full SHA 5203830View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e7ca23 - Browse repository at this point
Copy the full SHA 3e7ca23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8874415 - Browse repository at this point
Copy the full SHA 8874415View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb18eee - Browse repository at this point
Copy the full SHA fb18eeeView commit details
Commits on May 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 90a243f - Browse repository at this point
Copy the full SHA 90a243fView commit details
Commits on Jun 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a1cd35c - Browse repository at this point
Copy the full SHA a1cd35cView commit details -
Gives better name to command. Adds necessary use's.
Configuration menu - View commit details
-
Copy full SHA for ff03d77 - Browse repository at this point
Copy the full SHA ff03d77View commit details
Commits on Jun 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ecd5725 - Browse repository at this point
Copy the full SHA ecd5725View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e8c898 - Browse repository at this point
Copy the full SHA 5e8c898View commit details -
Change example to register commands globally
Removes hardcoded guild id and registers commands globally. I had copied some test code and left that in.
Configuration menu - View commit details
-
Copy full SHA for 3687fd8 - Browse repository at this point
Copy the full SHA 3687fd8View commit details
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bb4665c - Browse repository at this point
Copy the full SHA bb4665cView commit details