浏览代码

Fixing errors

BaumSplitter41 3 月之前
父节点
当前提交
ff2d9298db
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      VPD_BOT/cogs/delete_msg.py

+ 2 - 2
VPD_BOT/cogs/delete_msg.py

@@ -14,9 +14,9 @@ class delete(commands.Cog):
     async def delete(
             self,
             ctx,
-            amount: int = Option(int, "Select Number of the message to delete"),
+            amount: int = Option(int, "Select Number of the message to delete", required=True),
         ):
-        if amount is None or amount < 1:
+        if amount is None or amount <= 0:
             await ctx.respond("Please provide a valid number greater than 0.", ephemeral=True)
             return
         if not ctx.author.guild_permissions.manage_messages: