Metadata-Version: 2.1
Name: interactions-cooldowns
Version: 1.0.3
Summary: description
Home-page: https://github.com/dontbanmeplz/interactions-cooldowns
Author: dontbanmeplz
Author-email: example@email.domain
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# cooldowns
This is a quickstart and api docs for this module

## Quickstart
```python
import interactions
import interactions.ext.cooldown
guild_id = 0
token = ""
#create bot
bot = interactions.Client(token=token)
#create function on cooldown fail
async def error(ctx, t):
  await ctx.send(f"Wait {t} secconds")
#command
@bot.command(
    name="test",
    description="This is the first command I made!",
    scope=guild_id,
)
#define cooldown function and time of cooldown
@cooldown.cooldown(error, 10)
async def my_first_command(ctx: interactions.CommandContext):
  await ctx.send("Hi there!")
#start bot
bot.start()
```
## api
### cooldown.cooldown()
#### error
error function, leave `None` for placeholder
#### time
time of cooldown
#### _clean_timers
cleans all timers


