Fix Owner ID failsafe (#3782)

* Fix Owner ID failsafe

* Update redbot/core/bot.py

Co-Authored-By: jack1142 <6032823+jack1142@users.noreply.github.com>

* Let's go with a different approach (first commit)

* Let's go with a different approach (last commit)

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
Kowlin
2020-04-24 18:03:58 +02:00
committed by GitHub
parent e595f1859a
commit bf6390d72e
2 changed files with 10 additions and 4 deletions

View File

@@ -61,6 +61,7 @@ def init_events(bot, cli_flags):
else:
if bot.owner_id is None:
bot.owner_id = app_info.owner.id
bot._app_owners_fetched = True
try:
invite_url = discord.utils.oauth_url(app_info.id)