[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>
This commit is contained in:
Vexed 2020-06-18 15:00:08 +01:00 committed by GitHub
parent 70c733e146
commit 3a0574eae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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