mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fixes the strings of [p]set usebotcolor (#2974)
* Fixes the help text of `[p]set usebotcolor` * Create 2974.bugfix.rst
This commit is contained in:
parent
4f1f49d96f
commit
0be3b1acd7
1
changelog.d/2974.bugfix.rst
Normal file
1
changelog.d/2974.bugfix.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fixed the help text and response of `[p]set usebotcolor` to accurately reflect what the command is doing.
|
||||||
@ -853,14 +853,14 @@ class Core(commands.Cog, CoreLogic):
|
|||||||
"""
|
"""
|
||||||
Toggle whether to use the bot owner-configured colour for embeds.
|
Toggle whether to use the bot owner-configured colour for embeds.
|
||||||
|
|
||||||
Default is to not use the bot's configured colour, in which case the
|
Default is to use the bot's configured colour.
|
||||||
colour used will be the colour of the bot's top role.
|
Otherwise, the colour used will be the colour of the bot's top role.
|
||||||
"""
|
"""
|
||||||
current_setting = await ctx.bot._config.guild(ctx.guild).use_bot_color()
|
current_setting = await ctx.bot._config.guild(ctx.guild).use_bot_color()
|
||||||
await ctx.bot._config.guild(ctx.guild).use_bot_color.set(not current_setting)
|
await ctx.bot._config.guild(ctx.guild).use_bot_color.set(not current_setting)
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
_("The bot {} use its configured color for embeds.").format(
|
_("The bot {} use its configured color for embeds.").format(
|
||||||
_("will not") if current_setting else _("will")
|
_("will not") if not current_setting else _("will")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user