From 4552909eb51346dd3bb60616233db8410d9817c5 Mon Sep 17 00:00:00 2001 From: Arthur Jovart Date: Mon, 30 Aug 2021 00:39:35 +0200 Subject: [PATCH] Add spacing in the code --- discord/ext/commands/bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 8049cae8..27fb9c91 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -365,16 +365,20 @@ class BotBase(GroupMixin): """ if self.owner_id: owner = await self.try_user(self.owner_id) + if owner: return [owner] else: return [] + elif self.owner_ids: owners = [] + for owner_id in self.owner_ids: owner = await self.try_user(owner_id) if owner: owners.append(owner) + return owners else: # We didn't have owners cached yet, cache them and retry.