mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27: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")
|
@embedset.command(name="user")
|
||||||
async def embedset_user(self, ctx: commands.Context, enabled: bool = None):
|
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
|
If enabled is None, the setting will be unset and
|
||||||
the global default will be used instead.
|
the global default will be used instead.
|
||||||
|
|
||||||
If set, this is used instead of the global default
|
If set, this is used instead of the global default
|
||||||
to determine whether or not to use embeds. This is
|
to determine whether or not to use embeds. This is
|
||||||
used for all commands done in a DM with the bot, as
|
used for all commands done in a DM with the bot.
|
||||||
well as all help commands everywhere.
|
|
||||||
"""
|
"""
|
||||||
await self.bot._config.user(ctx.author).embeds.set(enabled)
|
await self.bot._config.user(ctx.author).embeds.set(enabled)
|
||||||
if enabled is None:
|
if enabled is None:
|
||||||
await ctx.send(_("Embeds will now fall back to the global setting."))
|
await ctx.send(_("Embeds will now fall back to the global setting."))
|
||||||
else:
|
else:
|
||||||
await ctx.send(
|
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()
|
@commands.command()
|
||||||
|
|||||||
Reference in New Issue
Block a user