[3.4] Use bot embed colour in [p]dm command (#5868) (#6054)

Co-authored-by: Kreusada Lavranocoyaskalas <67752638+Kreusada@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2023-04-19 23:56:11 +02:00
committed by GitHub
parent 77f8cf39e7
commit b4c2d9ffa1

View File

@@ -3498,7 +3498,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
description = _("Owner of {}").format(ctx.bot.user) description = _("Owner of {}").format(ctx.bot.user)
content = _("You can reply to this message with {}contact").format(prefix) content = _("You can reply to this message with {}contact").format(prefix)
if await ctx.embed_requested(): if await ctx.embed_requested():
e = discord.Embed(colour=discord.Colour.red(), description=message) e = discord.Embed(colour=await ctx.embed_colour(), description=message)
e.set_footer(text=content) e.set_footer(text=content)
if ctx.bot.user.avatar_url: if ctx.bot.user.avatar_url: