mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-22 18:57:59 -05:00
[V3 Core] add support for setting a color for embeds (#1707)
* [V3 Core] add support for setting a color for embeds * Add a guild toggle for whether to use the bot color * Add a function for getting embed color in Context * Coroutines need to be awaited lol
This commit is contained in:
@@ -172,6 +172,7 @@ def init_events(bot, cli_flags):
|
||||
if invite_url:
|
||||
print("\nInvite URL: {}\n".format(invite_url))
|
||||
|
||||
bot.color = discord.Colour(await bot.db.color())
|
||||
if bot.rpc_enabled:
|
||||
await bot.rpc.initialize()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user