diff --git a/redbot/__main__.py b/redbot/__main__.py index 6460c211c..92793ab56 100644 --- a/redbot/__main__.py +++ b/redbot/__main__.py @@ -104,7 +104,9 @@ def main(): log.debug("Data Path: %s", data_manager._base_data_path()) log.debug("Storage Type: %s", data_manager.storage_type()) - red = Red(cli_flags=cli_flags, description=description, dm_help=None) + red = Red( + cli_flags=cli_flags, description=description, dm_help=None, fetch_offline_members=True + ) init_global_checks(red) init_events(red, cli_flags) red.add_cog(Core(red)) diff --git a/redbot/core/events.py b/redbot/core/events.py index 0331cb795..165d51aa7 100644 --- a/redbot/core/events.py +++ b/redbot/core/events.py @@ -119,13 +119,25 @@ def init_events(bot, cli_flags): "Outdated version! {} is available " "but you're using {}".format(data["info"]["version"], red_version) ) - owner = await bot.fetch_user(bot.owner_id) - await owner.send( - "Your Red instance is out of date! {} is the current " - "version, however you are using {}!".format( - data["info"]["version"], red_version - ) - ) + + owners = [] + owner = bot.get_user(bot.owner_id) + if owner is not None: + owners.append(owner) + + for co_owner in bot._co_owners: + co_owner = await bot.get_user(co_owner) + if co_owner is not None: + owners.append(co_owner) + + for owner in owners: + with contextlib.suppress(discord.HTTPException): + await owner.send( + "Your Red instance is out of date! {} is the current " + "version, however you are using {}!".format( + data["info"]["version"], red_version + ) + ) INFO2 = [] mongo_enabled = storage_type() != "JSON"