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:
Flame442 2019-09-02 09:43:56 -04:00 committed by Michael H
parent 4f1f49d96f
commit 0be3b1acd7
2 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1 @@
Fixed the help text and response of `[p]set usebotcolor` to accurately reflect what the command is doing.

View File

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