mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
[Core] Fixed faulty logic in retrieving the owner
This commit is contained in:
2
red.py
2
red.py
@@ -315,7 +315,7 @@ async def set_bot_owner():
|
|||||||
owner = await bot.get_user_info(bot.settings.owner)
|
owner = await bot.get_user_info(bot.settings.owner)
|
||||||
except:
|
except:
|
||||||
owner = None
|
owner = None
|
||||||
else:
|
if not owner:
|
||||||
owner = bot.settings.owner # Just the ID then
|
owner = bot.settings.owner # Just the ID then
|
||||||
return owner
|
return owner
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user