Selaa lähdekoodia

Fixing errors.

BaumSplitter41 3 kuukautta sitten
vanhempi
sitoutus
36293f0358
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      VPD_BOT/cogs/delete_msg.py

+ 1 - 0
VPD_BOT/cogs/delete_msg.py

@@ -16,6 +16,7 @@ class delete(commands.Cog):
             ctx,
             amount: int = Option(int, "Select Number of the message to delete"),
         ):
+        amount = int(amount)
         if amount < 1:
             await ctx.respond("Please provide a valid number greater than 0.", ephemeral=True)
             return