pycord icon indicating copy to clipboard operation
pycord copied to clipboard

Add timeout feature to buttons

Open Rxann opened this issue 5 years ago • 2 comments

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

Rxann avatar Sep 19 '21 12:09 Rxann

You can already add a timeout to views like this.

esmaycat avatar Sep 19 '21 12:09 esmaycat

Thank you for this!

Rxann avatar Sep 19 '21 12:09 Rxann