mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[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:
parent
70c733e146
commit
3a0574eae8
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user