mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[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:
parent
f4ef3ea8eb
commit
694d379aef
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user