I'm making a Discord bot and I recently got a temporary API ban because I got rate limited. These bans are from calling the API too frequently, and I've tried putting cooldowns on the commands using-
@bot.command()
@commands.cooldown(1, 5, commands.BucketType.user)
async def ...
However, even if someone uses a command while it is on cooldown, it still counts as a request to the API.
Is there a way I could avoid this using discord.py?