Add spacing in the code
This commit is contained in:
@@ -365,16 +365,20 @@ class BotBase(GroupMixin):
|
|||||||
"""
|
"""
|
||||||
if self.owner_id:
|
if self.owner_id:
|
||||||
owner = await self.try_user(self.owner_id)
|
owner = await self.try_user(self.owner_id)
|
||||||
|
|
||||||
if owner:
|
if owner:
|
||||||
return [owner]
|
return [owner]
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
elif self.owner_ids:
|
elif self.owner_ids:
|
||||||
owners = []
|
owners = []
|
||||||
|
|
||||||
for owner_id in self.owner_ids:
|
for owner_id in self.owner_ids:
|
||||||
owner = await self.try_user(owner_id)
|
owner = await self.try_user(owner_id)
|
||||||
if owner:
|
if owner:
|
||||||
owners.append(owner)
|
owners.append(owner)
|
||||||
|
|
||||||
return owners
|
return owners
|
||||||
else:
|
else:
|
||||||
# We didn't have owners cached yet, cache them and retry.
|
# We didn't have owners cached yet, cache them and retry.
|
||||||
|
Reference in New Issue
Block a user