mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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:
parent
05ad3fcd5c
commit
dad775b494
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user