feat: added aliases to two of the config commands
This commit is contained in:
parent
c0fd2e7dc2
commit
4d69cdb4fc
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ class Shortmute(commands.Cog):
|
||||||
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."""
|
"""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.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_channel(self, ctx: commands.Context):
|
async def shortmute_config_channel(self, ctx: commands.Context):
|
||||||
|
@ -215,7 +215,7 @@ class Shortmute(commands.Cog):
|
||||||
else:
|
else:
|
||||||
await ctx.send("Please provide a valid channel that exists in the logging channels list.")
|
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.guild_only()
|
||||||
@commands.admin()
|
@commands.admin()
|
||||||
async def shortmute_config_role(self, ctx: commands.Context):
|
async def shortmute_config_role(self, ctx: commands.Context):
|
||||||
|
|
Loading…
Reference in a new issue