fix: SlashCommandGroup.walk_commands() error#1838
fix: SlashCommandGroup.walk_commands() error#1838Lulalaby merged 2 commits intoPycord-Development:masterfrom
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 <49261529+plun1331@users.noreply.github.com> Signed-off-by: Krishnan Shankar <krishnans2006@gmail.com>
Head branch was pushed to by a user without write access
|
Bruh changelog entry tho. |
Summary
Stops
SlashCommandGroup.walk_commands()from returningSlashCommandGroups.When
SlashCommandGroups have otherSlashCommandGroups as subcommands, they are also yielded inSlashCommandGroup.walk_commands(), even though onlySlashCommands should be yielded fromwalk_commands().Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.