[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:
Michael H 2018-05-28 01:23:03 -04:00 committed by palmtree5
parent 05ad3fcd5c
commit dad775b494

View File

@ -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)