pycord
pycord copied to clipboard
Add timeout feature to buttons
Summary
Add a timeout kwarg for an amount of time before a button disables itself.
What is the feature request for?
The core library
The Problem
I am trying to solve the problem of having to manually disable buttons. It would become a lot easier if there was a kwarg kind of like delete_after but it would disable the button after a certain amount of time.
The Ideal Solution
The ideal solution is that a kwarg will be added and a button will disable itself after the amount of time (seconds) specified.
The Current Solution
Manually disable the button
Additional Context
No response
You can already add a timeout to views like this.
Thank you for this!