serenity-rs / poise

Discord bot command framework for serenity, with advanced features like edit tracking and flexible argument parsing
MIT License
644 stars 114 forks source link

Add support for using manual cooldowns on single commands #269

Open jamesbt365 opened 4 months ago

jamesbt365 commented 4 months ago

Not sure if adding fields to Command is breaking, it can be constructed publicly so maybe? will rebase to next on request.

Currently it is treated like an override, but if allowing users to have manual cooldowns on for every command but a few select ones is desired, this could be an Option<bool>.

I have not adjusted the examples, but in the current state there isn't really anything to add. Maybe a comment somewhere saying that it can be done for specific commands?