feat: added aliases to two of the config commands

This commit is contained in:
Seaswimmer 2023-08-08 02:28:01 -04:00
parent c0fd2e7dc2
commit 4d69cdb4fc
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -169,7 +169,7 @@ class Shortmute(commands.Cog):
async def shortmute_config(self, ctx: commands.Context):
"""This command group is used to configure the `/shortmute` slash command."""
@shortmute_config.group(name='channel', invoke_without_command=True)
@shortmute_config.group(name='channel', invoke_without_command=True, aliases=['channels'])
@commands.guild_only()
@commands.admin()
async def shortmute_config_channel(self, ctx: commands.Context):
@ -215,7 +215,7 @@ class Shortmute(commands.Cog):
else:
await ctx.send("Please provide a valid channel that exists in the logging channels list.")
@shortmute_config.group(name='role', invoke_without_command=True)
@shortmute_config.group(name='role', invoke_without_command=True, aliases=['roles'])
@commands.guild_only()
@commands.admin()
async def shortmute_config_role(self, ctx: commands.Context):