[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