Add a utility yes_or_no
View subclass
#6484
Labels
Closed: Duplicate
There's another issue on the tracker that's pretty much the same thing.
yes_or_no
View subclass
#6484
Type of feature request
API functionality
Description of the feature you're suggesting
Currently, Red offers
redbot.core.utils.predicates.MessagePredicate.yes_or_no
andReactionPredicate.yes_or_no
as basic utilities for requesting a positive or negative response from a particular user using either text or reactions. Now that buttons are available, a utilityView
subclass (similar toSimpleMenu
) should be offered that gives a basic confirm/deny behavior for Core and 3rd party cogs to use.Ideally it would have the same inputs as the existing predicates (
ctx
,channel
,user
), but it may also make sense to supportinteraction
behaving similar toctx
but for interactions. It should also be easy for users to customize the emoji and label on each button, but the default should probably be an empty label with the checkmark and cross emojis fromReactionPredicate.YES_OR_NO_EMOJIS
.Anything else?
No response
The text was updated successfully, but these errors were encountered: