[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>
This commit is contained in:
Flame442 2020-10-18 15:11:38 -04:00 committed by GitHub
parent f4ef3ea8eb
commit 694d379aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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