mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
[commands] Fix Command.root_parent not properly working.
This commit is contained in:
@ -305,8 +305,10 @@ class Command:
|
||||
while command.parent is not None:
|
||||
command = command.parent
|
||||
entries.append(command)
|
||||
entries.append(None)
|
||||
entries.reverse()
|
||||
|
||||
if len(entries) == 0:
|
||||
return None
|
||||
|
||||
return entries[-1]
|
||||
|
||||
@property
|
||||
|
Reference in New Issue
Block a user