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

Fix Help displaying Groups and their Commands #577

Merged
merged 4 commits into from
May 25, 2019

Conversation

Lakelezz
Copy link
Contributor

This pull requests fixes the behaviour for groups to properly propagate their text-effects to sub-groups.
Empty groups will not be displayed. Therefore, if all commands are hidden, the group will be hidden and all of its sub-groups will be hidden too.

Also added tests ensuring the order.
A trait offering access to fields that both `CommandOptions` and
`GroupOptions` have in common and are required for other functions.
They can now operate over the same type with the same
implementation.
If a higher ranked group applies an effect to its commands, it will
propagate the effect to its sub-groups.
@Lakelezz Lakelezz added fix A solution to an existing bug. framework Related to the `framework` and `framework::standard` modules and/or the `command_attr` crate labels May 24, 2019
@Lakelezz Lakelezz added this to the 0.6 milestone May 24, 2019
@arqunis arqunis merged commit eca204a into serenity-rs:v0.6.x May 25, 2019
@Lakelezz Lakelezz deleted the fix-help-displaying-groups branch May 25, 2019 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A solution to an existing bug. framework Related to the `framework` and `framework::standard` modules and/or the `command_attr` crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants