fix: shrunk docstrings so they fit in -help
This commit is contained in:
parent
4d69cdb4fc
commit
1decc4f258
1 changed files with 11 additions and 11 deletions
|
@ -167,13 +167,13 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config(self, ctx: commands.Context):
|
async def shortmute_config(self, ctx: commands.Context):
|
||||||
"""This command group is used to configure the `/shortmute` slash command."""
|
"""Used to configure the `/shortmute` slash command."""
|
||||||
|
|
||||||
@shortmute_config.group(name='channel', invoke_without_command=True, aliases=['channels'])
|
@shortmute_config.group(name='channel', invoke_without_command=True, aliases=['channels'])
|
||||||
@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):
|
||||||
"""This command checks the existing list of channels that `/shortmute` is logging to."""
|
"""Checks the existing list of channels that `/shortmute` is logging to."""
|
||||||
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:
|
||||||
|
@ -189,7 +189,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_channel_add(self, ctx: commands.Context, channel: discord.TextChannel = None):
|
async def shortmute_config_channel_add(self, ctx: commands.Context, channel: discord.TextChannel = None):
|
||||||
"""This command changes where the `/shortmute` slash command will log shortmutes. You can set multiple channels as well!"""
|
"""Changes where the `/shortmute` slash command will log shortmutes."""
|
||||||
current_list = await self.config.guild(ctx.guild).logging_channels()
|
current_list = await self.config.guild(ctx.guild).logging_channels()
|
||||||
if channel:
|
if channel:
|
||||||
if channel.id in current_list:
|
if channel.id in current_list:
|
||||||
|
@ -206,7 +206,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_channel_remove(self, ctx: commands.Context, channel: discord.TextChannel = None):
|
async def shortmute_config_channel_remove(self, ctx: commands.Context, channel: discord.TextChannel = None):
|
||||||
"""This command removes a channel from the `/shortmute`slash command's logging channels list."""
|
"""Removes a channel from the `/shortmute`slash command's logging channels list."""
|
||||||
current_list = await self.config.guild(ctx.guild).logging_channels()
|
current_list = await self.config.guild(ctx.guild).logging_channels()
|
||||||
if channel.id in current_list:
|
if channel.id in current_list:
|
||||||
current_list.remove(channel.id)
|
current_list.remove(channel.id)
|
||||||
|
@ -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):
|
||||||
"""This command checks the existing list of roles that are immune from `/shortmute`."""
|
"""Checks the existing list of roles that are immune from `/shortmute`."""
|
||||||
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:
|
||||||
|
@ -233,7 +233,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):
|
||||||
"""This command adds roles to the immune roles list for immunity from the `/shortmute` slash command."""
|
"""Adds roles to the immune roles list for the `/shortmute` slash command."""
|
||||||
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:
|
||||||
|
@ -250,7 +250,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):
|
||||||
"""This command removes roles from the immune roles list to remove immunity from the `/shortmute` slash command."""
|
"""Removes roles from the immune roles list for the `/shortmute` slash command."""
|
||||||
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)
|
||||||
|
@ -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):
|
||||||
"""This command checks the existing list of users that are blacklisted from using `/shortmute`."""
|
"""Checks the existing list of users that are blacklisted from using `/shortmute`."""
|
||||||
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:
|
||||||
|
@ -277,7 +277,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_blacklist_add(self, ctx: commands.Context, user: discord.User = None):
|
async def shortmute_config_blacklist_add(self, ctx: commands.Context, user: discord.User = None):
|
||||||
"""This command adds users to the blacklist for the `/shortmute` slash command."""
|
"""Adds users to the blacklist for the `/shortmute` slash command."""
|
||||||
current_list = await self.config.guild(ctx.guild).blacklisted_users()
|
current_list = await self.config.guild(ctx.guild).blacklisted_users()
|
||||||
if user:
|
if user:
|
||||||
if user.id in current_list:
|
if user.id in current_list:
|
||||||
|
@ -294,7 +294,7 @@ class Shortmute(commands.Cog):
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_blacklist_remove(self, ctx: commands.Context, user: discord.User = None):
|
async def shortmute_config_blacklist_remove(self, ctx: commands.Context, user: discord.User = None):
|
||||||
"""This command adds users to the blacklist for the `/shortmute` slash command."""
|
"""Removes users from the blacklist for the `/shortmute` slash command."""
|
||||||
current_list = await self.config.guild(ctx.guild).blacklisted_users()
|
current_list = await self.config.guild(ctx.guild).blacklisted_users()
|
||||||
if user.id in current_list:
|
if user.id in current_list:
|
||||||
current_list.remove(user.id)
|
current_list.remove(user.id)
|
||||||
|
@ -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):
|
||||||
"""This command changes if the `/shortmute` slash command Direct Messages its target."""
|
"""Changes if the `/shortmute` slash command 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