Skip to content

Instantly share code, notes, and snippets.

MaciejkaG /
Last active Dec 20, 2021 command cooldown and error

Hi! Today, i will show you how to make simple command cooldown in

It's very simple, just must to add something under @bot.command: @commands.cooldown({how many can use per...}, {x seconds}, commands.BucketType.user) Example:

@commands.cooldown(1, 10, commands.BucketType.user)
async def helloworld(ctx):
  await ctx.send('Hello world!')