From 694d379aef72b944e77a22a7c569dc7ecea1b28c Mon Sep 17 00:00:00 2001 From: Flame442 <34169552+Flame442@users.noreply.github.com> Date: Sun, 18 Oct 2020 15:11:38 -0400 Subject: [PATCH] [Core] Add default embed colour to `[p]set showsettings` (#4498) * Add default color to [p]set showsettings * I didn't want to since I thought it would be too long, but sure Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> --- redbot/core/core_commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 2e0de22ce..abb9d44e0 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -1579,6 +1579,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): global_data = await ctx.bot._config.all() locale = global_data["locale"] regional_format = global_data["regional_format"] or _("Same as bot's locale") + colour = discord.Colour(global_data["color"]) prefix_string = " ".join(prefixes) settings = _( @@ -1586,13 +1587,15 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): "Prefixes: {prefixes}\n" "{guild_settings}" "Locale: {locale}\n" - "Regional format: {regional_format}" + "Regional format: {regional_format}\n" + "Default embed colour: {colour}" ).format( bot_name=ctx.bot.user.name, prefixes=prefix_string, guild_settings=guild_settings, locale=locale, regional_format=regional_format, + colour=colour, ) for page in pagify(settings): await ctx.send(box(page))