mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 01:42:30 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user