fix: more docstring shortening
This commit is contained in:
parent
bb3d0c8bc0
commit
366628c37a
1 changed files with 4 additions and 4 deletions
|
@ -189,7 +189,7 @@ class Shortmute(commands.Cog):
|
|||
@commands.guild_only()
|
||||
@commands.admin()
|
||||
async def shortmute_config_channel_add(self, ctx: commands.Context, channel: discord.TextChannel = None):
|
||||
"""Adds a channel to the /shortmute logging channels list."""
|
||||
"""Adds a channel to the logging channels list."""
|
||||
current_list = await self.config.guild(ctx.guild).logging_channels()
|
||||
if channel:
|
||||
if channel.id in current_list:
|
||||
|
@ -206,7 +206,7 @@ class Shortmute(commands.Cog):
|
|||
@commands.guild_only()
|
||||
@commands.admin()
|
||||
async def shortmute_config_channel_remove(self, ctx: commands.Context, channel: discord.TextChannel = None):
|
||||
"""Removes a channel from the /shortmute logging channels list."""
|
||||
"""Removes a channel from the logging channels list."""
|
||||
current_list = await self.config.guild(ctx.guild).logging_channels()
|
||||
if channel.id in current_list:
|
||||
current_list.remove(channel.id)
|
||||
|
@ -235,7 +235,7 @@ class Shortmute(commands.Cog):
|
|||
@commands.guild_only()
|
||||
@commands.admin()
|
||||
async def shortmute_config_role_add(self, ctx: commands.Context, role: discord.Role = None):
|
||||
"""Adds roles to the /shortmute immune roles list."""
|
||||
"""Adds roles to the /shortmute immune roles."""
|
||||
current_list = await self.config.guild(ctx.guild).immune_roles()
|
||||
if role:
|
||||
if role.id in current_list:
|
||||
|
@ -252,7 +252,7 @@ class Shortmute(commands.Cog):
|
|||
@commands.guild_only()
|
||||
@commands.admin()
|
||||
async def shortmute_config_role_remove(self, ctx: commands.Context, role: discord.Role = None):
|
||||
"""Removes roles from the /shortmute immune roles list."""
|
||||
"""Removes roles from the /shortmute immune roles."""
|
||||
current_list = await self.config.guild(ctx.guild).immune_roles()
|
||||
if role.id in current_list:
|
||||
current_list.remove(role.id)
|
||||
|
|
Loading…
Reference in a new issue