mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
[V3 Context] use bot's color if it has one (Ux Consistency with help formatter) (#1706)
* use bot's color if it has one * add bot color support to context * alias color to colour too to match d.py consistency * Update context.py * Update context.py * black fix
This commit is contained in:
@@ -191,6 +191,8 @@ class Context(commands.Context):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if await self.embed_requested():
|
if await self.embed_requested():
|
||||||
return await self.send(embed=discord.Embed(description=message))
|
return await self.send(
|
||||||
|
embed=discord.Embed(description=message, color=(await self.embed_colour()))
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
return await self.send(message)
|
return await self.send(message)
|
||||||
|
|||||||
Reference in New Issue
Block a user