the discordpy cooldown error does not allow other errors to be raised

The Error Handler checks if the error is the CommandOnCooldown error. If it isnt, the error gets ignored. Add another else statement:

@bot.event
async def on_command_error(ctx, error):
    if isinstance(error, commands.CommandOnCooldown):

         if error.retry_after>3600:
         ....

         else:
         ....
    else:
         Stuff the bot should do on a different error come here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top