change docstring and message to explicitly say DMs

This commit is contained in:
Vexed01
2020-06-13 20:27:18 +01:00
parent e59d52bae4
commit f5b6ac2f9c

View File

@@ -542,22 +542,21 @@ 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 done 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 {} for you, in DMs.").format(_("enabled") if enabled else _("disabled"))
)
@commands.command()