docs: clarified how -shortmuteset message works
This commit is contained in:
parent
9d8b9353a9
commit
26d17ea68b
1 changed files with 6 additions and 1 deletions
|
@ -311,7 +311,12 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_message(self, ctx: commands.Context, enabled: bool = None):
|
async def shortmute_config_message(self, ctx: commands.Context, enabled: bool = None):
|
||||||
"""Manages if /shortmute Direct Messages its target."""
|
"""Manages if /shortmute Direct Messages its target.
|
||||||
|
|
||||||
|
Parameters
|
||||||
|
------------
|
||||||
|
enabled: bool (optional)
|
||||||
|
This parameter, if set, will toggle this setting to either True or False."""
|
||||||
old_value = await self.config.guild(ctx.guild).dm()
|
old_value = await self.config.guild(ctx.guild).dm()
|
||||||
if enabled:
|
if enabled:
|
||||||
await self.config.guild(ctx.guild).dm.set(enabled)
|
await self.config.guild(ctx.guild).dm.set(enabled)
|
||||||
|
|
Loading…
Reference in a new issue