[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:
jack1142
2020-01-06 00:38:59 +01:00
committed by Michael H
parent 9ec78d1455
commit b0f840c273
6 changed files with 34 additions and 8 deletions

View File

@@ -0,0 +1 @@
:attr:`redbot.core.bot.Bot.owner_id` is now set in our post connection startup.

View 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.

View 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.

View File

@@ -0,0 +1 @@
Added :meth:`redbot.core.bot.Bot.wait_until_red_ready()` method that waits until our post connection startup is done.