modified: bot.py
This commit is contained in:
12
bot.py
12
bot.py
@@ -1,4 +1,4 @@
|
|||||||
__version__ = "dev-0.9.7"
|
__version__ = "dev-0.9.8"
|
||||||
__all__ = ["Discordbot-chatai (Discord)"]
|
__all__ = ["Discordbot-chatai (Discord)"]
|
||||||
__author__ = "SimolZimol"
|
__author__ = "SimolZimol"
|
||||||
|
|
||||||
@@ -4132,10 +4132,7 @@ async def viewwarn(ctx, warning_id: int):
|
|||||||
|
|
||||||
@client.hybrid_command()
|
@client.hybrid_command()
|
||||||
async def removewarn(ctx, warning_id: int):
|
async def removewarn(ctx, warning_id: int):
|
||||||
"""Deactivates a warning (makes it hidden from /account but keeps data) (Requires Permission Level 6 or higher)
|
"""Deactivates a warning (hides from /account but keeps data) - Level 6+ required"""
|
||||||
|
|
||||||
Usage: /removewarn 123
|
|
||||||
"""
|
|
||||||
# Check if it's a slash command and defer if needed
|
# Check if it's a slash command and defer if needed
|
||||||
is_slash_command = hasattr(ctx, 'interaction') and ctx.interaction
|
is_slash_command = hasattr(ctx, 'interaction') and ctx.interaction
|
||||||
if is_slash_command:
|
if is_slash_command:
|
||||||
@@ -4248,10 +4245,7 @@ async def removewarn(ctx, warning_id: int):
|
|||||||
|
|
||||||
@client.hybrid_command()
|
@client.hybrid_command()
|
||||||
async def restorewarn(ctx, warning_id: int):
|
async def restorewarn(ctx, warning_id: int):
|
||||||
"""Reactivates a previously deactivated warning (Requires Permission Level 6 or higher)
|
"""Reactivates a previously deactivated warning - Level 6+ required"""
|
||||||
|
|
||||||
Usage: /restorewarn 123
|
|
||||||
"""
|
|
||||||
# Check if it's a slash command and defer if needed
|
# Check if it's a slash command and defer if needed
|
||||||
is_slash_command = hasattr(ctx, 'interaction') and ctx.interaction
|
is_slash_command = hasattr(ctx, 'interaction') and ctx.interaction
|
||||||
if is_slash_command:
|
if is_slash_command:
|
||||||
|
|||||||
Reference in New Issue
Block a user