[commands] Fix Command.root_parent not properly working.
This commit is contained in:
parent
eda903f6b1
commit
a7f846b37f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user