mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
change docstring and message to explicitly say DMs
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user