docs: changed docstrings again
This commit is contained in:
parent
366628c37a
commit
9d8b9353a9
1 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_role_add(self, ctx: commands.Context, role: discord.Role = None):
|
async def shortmute_config_role_add(self, ctx: commands.Context, role: discord.Role = None):
|
||||||
"""Adds roles to the /shortmute immune roles."""
|
"""Adds roles to the immune roles list."""
|
||||||
current_list = await self.config.guild(ctx.guild).immune_roles()
|
current_list = await self.config.guild(ctx.guild).immune_roles()
|
||||||
if role:
|
if role:
|
||||||
if role.id in current_list:
|
if role.id in current_list:
|
||||||
|
@ -252,7 +252,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_role_remove(self, ctx: commands.Context, role: discord.Role = None):
|
async def shortmute_config_role_remove(self, ctx: commands.Context, role: discord.Role = None):
|
||||||
"""Removes roles from the /shortmute immune roles."""
|
"""Removes roles from the immune roles list."""
|
||||||
current_list = await self.config.guild(ctx.guild).immune_roles()
|
current_list = await self.config.guild(ctx.guild).immune_roles()
|
||||||
if role.id in current_list:
|
if role.id in current_list:
|
||||||
current_list.remove(role.id)
|
current_list.remove(role.id)
|
||||||
|
|
Loading…
Reference in a new issue