Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a utility yes_or_no View subclass #6484

Closed
Flame442 opened this issue Nov 29, 2024 · 1 comment
Closed

Add a utility yes_or_no View subclass #6484

Flame442 opened this issue Nov 29, 2024 · 1 comment
Labels
Closed: Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@Flame442
Copy link
Member

Type of feature request

API functionality

Description of the feature you're suggesting

Currently, Red offers redbot.core.utils.predicates.MessagePredicate.yes_or_no and ReactionPredicate.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 utility View subclass (similar to SimpleMenu) 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 support interaction behaving similar to ctx 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 from ReactionPredicate.YES_OR_NO_EMOJIS.

Anything else?

No response

@Flame442 Flame442 added Category: Core - API - Utils Package This is related to stuff in `redbot.core.utils` Status: PRs Welcome No one is currently assigned to this issue, but we'd be grateful if anyone made a PR. Type: Feature New feature or request. Closed: Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Type: Feature New feature or request. Status: PRs Welcome No one is currently assigned to this issue, but we'd be grateful if anyone made a PR. Category: Core - API - Utils Package This is related to stuff in `redbot.core.utils` labels Nov 29, 2024
@Flame442
Copy link
Member Author

I missed the memo that ConfirmView was added in #6176. Sorry for not searching the issues first!

@Flame442 Flame442 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed: Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

1 participant