mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[Core] Add Red.wait_until_red_ready() function to wait until post connection startup is done (#3273)
* enhance: add `Red.wait_until_red_ready()` for post connection startup * enhance: fill `bot.owner_id` in our `on_ready` * enhance: log missing destinations in `get_owner_notification_destinations` * chore(changelog): add towncrier entries * chore(changelog): use past form of verb "add"
This commit is contained in:
1
changelog.d/3273.bugfix.1.rst
Normal file
1
changelog.d/3273.bugfix.1.rst
Normal file
@@ -0,0 +1 @@
|
||||
:attr:`redbot.core.bot.Bot.owner_id` is now set in our post connection startup.
|
||||
1
changelog.d/3273.bugfix.2.rst
Normal file
1
changelog.d/3273.bugfix.2.rst
Normal file
@@ -0,0 +1 @@
|
||||
:meth:`redbot.core.bot.Bot.send_to_owners()` and :meth:`redbot.core.bot.Bot.get_owner_notification_destinations()` now wait until Red is done with post connection startup to ensure owner ID is available.
|
||||
1
changelog.d/3273.enhance.rst
Normal file
1
changelog.d/3273.enhance.rst
Normal file
@@ -0,0 +1 @@
|
||||
:meth:`redbot.core.bot.Bot.send_to_owners()` and :meth:`redbot.core.bot.Bot.get_owner_notification_destinations()` now log that they weren't able to find owner notification destination.
|
||||
1
changelog.d/3273.feature.rst
Normal file
1
changelog.d/3273.feature.rst
Normal file
@@ -0,0 +1 @@
|
||||
Added :meth:`redbot.core.bot.Bot.wait_until_red_ready()` method that waits until our post connection startup is done.
|
||||
Reference in New Issue
Block a user