fix: more docstring shortening

This commit is contained in:
Seaswimmer 2023-08-08 02:34:47 -04:00
parent dc0bdcbd42
commit 2fa0cf3de5
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -173,7 +173,7 @@ class Shortmute(commands.Cog):
@commands.guild_only()
@commands.admin()
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()
already_in_list = []
for channel_id in current_list:
@ -219,7 +219,7 @@ class Shortmute(commands.Cog):
@commands.guild_only()
@commands.admin()
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()
already_in_list = []
for role_id in current_list:
@ -263,7 +263,7 @@ class Shortmute(commands.Cog):
@commands.guild_only()
@commands.admin()
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()
already_in_list = []
for user_id in current_list:
@ -307,7 +307,7 @@ class Shortmute(commands.Cog):
@commands.guild_only()
@commands.admin()
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()
if enabled:
await self.config.guild(ctx.guild).dm.set(enabled)