From 246140da9bd0f8e083045c341c0c7b1cce04ec2f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Mar 2024 16:11:15 -0500 Subject: [PATCH] fix(aurora): fixed argument descriptions --- aurora/aurora.py | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index 9cff9d9..629477c 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -182,6 +182,11 @@ class Aurora(commands.Cog): @commands.hybrid_command(name="note") @commands.mod_or_permissions(moderate_members=True) + @app_commands.describe( + target="Who are you noting?", + reason="Why are you noting this user?", + silent="Should the user be messaged?", + ) async def note( self, ctx: commands.Context, @@ -189,16 +194,7 @@ class Aurora(commands.Cog): reason: str, silent: bool = None, ): - """Add a note to a user. - - Parameters - ----------- - target: discord.User - Who are you noting? - reason: str - Why are you noting this user? - silent: bool - Should the user be messaged?""" + """Add a note to a user.""" if not await check_moddable(target, ctx, ["moderate_members"]): return @@ -242,6 +238,11 @@ class Aurora(commands.Cog): @commands.hybrid_command(name="warn") @commands.mod_or_permissions(moderate_members=True) + @app_commands.describe( + target="Who are you warning?", + reason="Why are you warning this user?", + silent="Should the user be messaged?", + ) async def warn( self, ctx: commands.Context, @@ -249,16 +250,7 @@ class Aurora(commands.Cog): reason: str, silent: bool = None, ): - """Warn a user. - - Parameters - ----------- - target: discord.Member - Who are you warning? - reason: str - Why are you warning this user? - silent: bool - Should the user be messaged?""" + """Warn a user.""" if not await check_moddable(target, ctx, ["moderate_members"]): return