-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add an easy way to handle cooldowns for custom command handler implementations, or any other usecase requiring them.
Why is this needed?
It could be handy to enforce ratelimits, or just to create custom logic within Discord bots.
Ideal implementation
Cooldown buckets that can operate on a variety of types, (perharps passing a lambda to tell it how to extract the hash so it works on any type?) and logic that can either wait for the cooldown to expire then continue or raise errors (or other similar behaviour)
Checklist
- I have searched the issue tracker and have made sure it's not a duplicate. If it is a follow up of another issue, I have specified it.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request