-
-
Notifications
You must be signed in to change notification settings - Fork 467
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: SlashCommandGroup.walk_commands() error #1838
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1838 +/- ##
=======================================
Coverage 33.38% 33.38%
=======================================
Files 97 97
Lines 18815 18815
=======================================
Hits 6282 6282
Misses 12533 12533
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I'm unsure about this one, are we sure that we only want it to return cc. @Dorukyum |
Looking at the function's return type, it seemed so, which is why I made the pr... if we choose to keep existing functionality, we should at least change the typehint to reflect what the method does. |
I think |
…nds()` to now return both `SlashCommand`s and `SlashCommandGroup`s
ddef745
to
695fe99
Compare
Co-authored-by: plun1331 <[email protected]> Signed-off-by: Krishnan Shankar <[email protected]>
Head branch was pushed to by a user without write access
Bruh changelog entry tho. |
Summary
Stops
SlashCommandGroup.walk_commands()
from returningSlashCommandGroup
s.When
SlashCommandGroup
s have otherSlashCommandGroup
s as subcommands, they are also yielded inSlashCommandGroup.walk_commands()
, even though onlySlashCommand
s should be yielded fromwalk_commands()
.Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.