mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3] use configured color in all places (#1918)
* use configured color * help formatter too
This commit is contained in:
parent
7a6a4cf59d
commit
43cc3c40f3
@ -275,7 +275,7 @@ class Core(CoreLogic):
|
||||
"".format(red_repo, author_repo, org_repo, support_server_url)
|
||||
)
|
||||
|
||||
embed = discord.Embed(color=discord.Color.red())
|
||||
embed = discord.Embed(color=(await ctx.embed_colour()))
|
||||
embed.add_field(name="Instance owned by", value=str(owner))
|
||||
embed.add_field(name="Python", value=python_version)
|
||||
embed.add_field(name="discord.py", value=dpy_version)
|
||||
|
||||
@ -82,10 +82,7 @@ class Help(formatter.HelpFormatter):
|
||||
if self.pm_check(self.context):
|
||||
return self.context.bot.color
|
||||
else:
|
||||
if await self.context.bot.db.guild(self.context.guild).use_bot_color():
|
||||
return self.context.bot.color
|
||||
else:
|
||||
return self.me.color
|
||||
return await self.context.embed_colour()
|
||||
|
||||
@property
|
||||
def destination(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user