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.hybrid_command(name="note")
|
||||||
@commands.mod_or_permissions(moderate_members=True)
|
@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(
|
async def note(
|
||||||
self,
|
self,
|
||||||
ctx: commands.Context,
|
ctx: commands.Context,
|
||||||
|
@ -189,16 +194,7 @@ class Aurora(commands.Cog):
|
||||||
reason: str,
|
reason: str,
|
||||||
silent: bool = None,
|
silent: bool = None,
|
||||||
):
|
):
|
||||||
"""Add a note to a user.
|
"""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?"""
|
|
||||||
if not await check_moddable(target, ctx, ["moderate_members"]):
|
if not await check_moddable(target, ctx, ["moderate_members"]):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -242,6 +238,11 @@ class Aurora(commands.Cog):
|
||||||
|
|
||||||
@commands.hybrid_command(name="warn")
|
@commands.hybrid_command(name="warn")
|
||||||
@commands.mod_or_permissions(moderate_members=True)
|
@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(
|
async def warn(
|
||||||
self,
|
self,
|
||||||
ctx: commands.Context,
|
ctx: commands.Context,
|
||||||
|
@ -249,16 +250,7 @@ class Aurora(commands.Cog):
|
||||||
reason: str,
|
reason: str,
|
||||||
silent: bool = None,
|
silent: bool = None,
|
||||||
):
|
):
|
||||||
"""Warn a user.
|
"""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?"""
|
|
||||||
if not await check_moddable(target, ctx, ["moderate_members"]):
|
if not await check_moddable(target, ctx, ["moderate_members"]):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue