Implement Rate Limiting for AI primarily #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
from discord.ext import commands
@client.tree.command(name="expensive_operation")
@app_commands.checks.cooldown(1, 60.0, key=lambda i: i.user.id)
async def expensive_operation(interaction: discord.Interaction):
# Command logic
pass