mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Set Red._color before login rather than in on_ready (#5627)
This commit is contained in:
parent
0f299ae195
commit
aa55b08a0a
@ -216,7 +216,6 @@ class Red(
|
|||||||
|
|
||||||
self._uptime = None
|
self._uptime = None
|
||||||
self._checked_time_accuracy = None
|
self._checked_time_accuracy = None
|
||||||
self._color = discord.Embed.Empty # This is needed or color ends up 0x000000
|
|
||||||
|
|
||||||
self._main_dir = bot_dir
|
self._main_dir = bot_dir
|
||||||
self._cog_mgr = CogManager()
|
self._cog_mgr = CogManager()
|
||||||
@ -1044,6 +1043,7 @@ class Red(
|
|||||||
"""
|
"""
|
||||||
await self._maybe_update_config()
|
await self._maybe_update_config()
|
||||||
self.description = await self._config.description()
|
self.description = await self._config.description()
|
||||||
|
self._color = discord.Colour(await self._config.color())
|
||||||
|
|
||||||
init_global_checks(self)
|
init_global_checks(self)
|
||||||
init_events(self, self._cli_flags)
|
init_events(self, self._cli_flags)
|
||||||
|
|||||||
@ -188,7 +188,6 @@ def init_events(bot, cli_flags):
|
|||||||
if rich_outdated_message:
|
if rich_outdated_message:
|
||||||
rich_console.print(rich_outdated_message)
|
rich_console.print(rich_outdated_message)
|
||||||
|
|
||||||
bot._color = discord.Colour(await bot._config.color())
|
|
||||||
bot._red_ready.set()
|
bot._red_ready.set()
|
||||||
if outdated_red_message:
|
if outdated_red_message:
|
||||||
await send_to_owners_with_prefix_replaced(bot, outdated_red_message)
|
await send_to_owners_with_prefix_replaced(bot, outdated_red_message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user