fix: more docstring shortening
This commit is contained in:
parent
dc0bdcbd42
commit
2fa0cf3de5
1 changed files with 4 additions and 4 deletions
|
@ -173,7 +173,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_channel(self, ctx: commands.Context):
|
async def shortmute_config_channel(self, ctx: commands.Context):
|
||||||
"""Lists the channels that /shortmute is logging to."""
|
"""Manages /shortmute logging."""
|
||||||
current_list = await self.config.guild(ctx.guild).logging_channels()
|
current_list = await self.config.guild(ctx.guild).logging_channels()
|
||||||
already_in_list = []
|
already_in_list = []
|
||||||
for channel_id in current_list:
|
for channel_id in current_list:
|
||||||
|
@ -219,7 +219,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_role(self, ctx: commands.Context):
|
async def shortmute_config_role(self, ctx: commands.Context):
|
||||||
"""Lists the roles that are immune from /shortmute."""
|
"""Manages the immune roles list."""
|
||||||
current_list = await self.config.guild(ctx.guild).immune_roles()
|
current_list = await self.config.guild(ctx.guild).immune_roles()
|
||||||
already_in_list = []
|
already_in_list = []
|
||||||
for role_id in current_list:
|
for role_id in current_list:
|
||||||
|
@ -263,7 +263,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_blacklist(self, ctx: commands.Context):
|
async def shortmute_config_blacklist(self, ctx: commands.Context):
|
||||||
"""Lists the users that are blacklisted from using /shortmute."""
|
"""Manages the blacklist."""
|
||||||
current_list = await self.config.guild(ctx.guild).blacklisted_users()
|
current_list = await self.config.guild(ctx.guild).blacklisted_users()
|
||||||
already_in_list = []
|
already_in_list = []
|
||||||
for user_id in current_list:
|
for user_id in current_list:
|
||||||
|
@ -307,7 +307,7 @@ 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):
|
||||||
"""Changes if /shortmute Direct Messages its target."""
|
"""Manages if /shortmute Direct Messages its target."""
|
||||||
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