forked from cswimr/SeaCogs
fix(aurora): fixed argument descriptions
This commit is contained in:
parent
918c058f5a
commit
246140da9b
1 changed files with 12 additions and 20 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue