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
No dependencies set.
The note is not visible to the blocked user.
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