[commands] Fix Command.root_parent not properly working.

This commit is contained in:
Rapptz 2017-07-19 05:14:23 -04:00
parent eda903f6b1
commit a7f846b37f

View File

@ -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