File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,13 @@ possible (see our
8
8
[ Version Guarantees] ( https://docs.pycord.dev/en/stable/version_guarantees.html ) for more
9
9
info).
10
10
11
- ## [ Unreleased]
11
+ ## [ 2.2.2] - 2022-10-05
12
+
13
+ ### Fixed
14
+
15
+ - Fixed ` parent ` attribute of second level subcommands being set to the base level
16
+ command instead of the direct parent.
17
+ ([ #1673 ] ( https://github.com/Pycord-Development/pycord/pull/1673 ) )
12
18
13
19
## [ 2.2.1] - 2022-10-05
14
20
@@ -391,7 +397,8 @@ info).
391
397
- Fix py3.10 UnionType checks issue.
392
398
([ #1240 ] ( https://github.com/Pycord-Development/pycord/pull/1240 ) )
393
399
394
- [ unreleased ] : https://github.com/Pycord-Development/pycord/compare/v2.2.1...HEAD
400
+ [ unreleased ] : https://github.com/Pycord-Development/pycord/compare/v2.2.2...HEAD
401
+ [ 2.2.2 ] : https://github.com/Pycord-Development/pycord/compare/v2.2.1...v2.2.2
395
402
[ 2.2.1 ] : https://github.com/Pycord-Development/pycord/compare/v2.2.0...v2.2.1
396
403
[ 2.2.0 ] : https://github.com/Pycord-Development/pycord/compare/v2.1.3...v2.2.0
397
404
[ 2.1.3 ] : https://github.com/Pycord-Development/pycord/compare/v2.1.2...v2.1.3
Original file line number Diff line number Diff line change @@ -532,7 +532,10 @@ def _inject(self: CogT, bot) -> CogT:
532
532
533
533
if isinstance (command , ApplicationCommand ):
534
534
if isinstance (command , discord .SlashCommandGroup ):
535
- for x in command .walk_commands ():
535
+ for x in command .subcommands :
536
+ if isinstance (x , discord .SlashCommandGroup ):
537
+ for y in x .subcommands :
538
+ y .parent = x
536
539
x .parent = command
537
540
bot .add_application_command (command )
538
541
You can’t perform that action at this time.
0 commit comments