From 3de66e0e9c6fa2da7dcad7d5502127ee1da5d449 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Sat, 23 Aug 2025 11:25:01 +0200 Subject: [PATCH] modified: bot.py --- bot.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bot.py b/bot.py index eaff55e..ec2565a 100644 --- a/bot.py +++ b/bot.py @@ -1,4 +1,4 @@ -__version__ = "dev-0.9.7" +__version__ = "dev-0.9.8" __all__ = ["Discordbot-chatai (Discord)"] __author__ = "SimolZimol" @@ -4132,10 +4132,7 @@ async def viewwarn(ctx, warning_id: int): @client.hybrid_command() async def removewarn(ctx, warning_id: int): - """Deactivates a warning (makes it hidden from /account but keeps data) (Requires Permission Level 6 or higher) - - Usage: /removewarn 123 - """ + """Deactivates a warning (hides from /account but keeps data) - Level 6+ required""" # Check if it's a slash command and defer if needed is_slash_command = hasattr(ctx, 'interaction') and ctx.interaction if is_slash_command: @@ -4248,10 +4245,7 @@ async def removewarn(ctx, warning_id: int): @client.hybrid_command() async def restorewarn(ctx, warning_id: int): - """Reactivates a previously deactivated warning (Requires Permission Level 6 or higher) - - Usage: /restorewarn 123 - """ + """Reactivates a previously deactivated warning - Level 6+ required""" # Check if it's a slash command and defer if needed is_slash_command = hasattr(ctx, 'interaction') and ctx.interaction if is_slash_command: