From 3a0574eae89165dfeb169fabe3aba04a60d21ff0 Mon Sep 17 00:00:00 2001 From: Vexed Date: Thu, 18 Jun 2020 15:00:08 +0100 Subject: [PATCH] [Core] Change `[p]embedset user` docstring and message to explicitly say DMs only (#3972) * change docstring and message to explicitly say DMs * didn't think i'd need to run black... * wrong branch... This reverts commit aa6aa5cf4bcf9ff66e8c3e1636daa03feee47e97. * wait its the right branch * review - seperate enabled & disabled strings * review Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com> Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com> --- redbot/core/core_commands.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index fb86b676b..673e5d5ec 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -542,22 +542,23 @@ class Core(commands.Cog, CoreLogic): @embedset.command(name="user") async def embedset_user(self, ctx: commands.Context, enabled: bool = None): """ - Toggle the user's embed setting. + Toggle the user's embed setting for DMs. If enabled is None, the setting will be unset and the global default will be used instead. If set, this is used instead of the global default to determine whether or not to use embeds. This is - used for all commands done in a DM with the bot, as - well as all help commands everywhere. + used for all commands executed in a DM with the bot. """ await self.bot._config.user(ctx.author).embeds.set(enabled) if enabled is None: await ctx.send(_("Embeds will now fall back to the global setting.")) else: await ctx.send( - _("Embeds are now {} for you.").format(_("enabled") if enabled else _("disabled")) + _("Embeds are now enabled for you in DMs.") + if enabled + else _("Embeds are now disabled for you in DMs.") ) @commands.command()