feat: added an alias for confirmation, 'confirm'

This commit is contained in:
Seaswimmer 2023-08-11 16:44:42 -04:00
parent f0767343e9
commit 3267dffdd3
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -324,7 +324,7 @@ class Shortmute(commands.Cog):
await self.config.guild(ctx.guild).dm.set(enabled) await self.config.guild(ctx.guild).dm.set(enabled)
await ctx.send(content=f"Shortmute Direct Message setting changed!\nOld value: `{old_value}`\nNew value: `{enabled}`") await ctx.send(content=f"Shortmute Direct Message setting changed!\nOld value: `{old_value}`\nNew value: `{enabled}`")
@shortmute_config.command(name='confirmation') @shortmute_config.command(name='confirmation', aliases=['confirm'])
@commands.guild_only() @commands.guild_only()
@commands.admin() @commands.admin()
async def shortmute_config_confirmation(self, ctx: commands.Context, enabled: bool = None): async def shortmute_config_confirmation(self, ctx: commands.Context, enabled: bool = None):