docs: changed docstrings again

This commit is contained in:
Seaswimmer 2023-08-08 02:40:03 -04:00
parent 366628c37a
commit 9d8b9353a9
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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)