Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Add singleSelectionMode to SelectionDialog #75

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

kantenkugel
Copy link
Member

Pull Request

Pull Request Checklist

Please follow the following steps before opening this PR.

PRs that do not complete the checklist will be subject to denial for
missing information.

Pull Request Information

Check and fill in the blanks for all that apply:

  • My PR fixes a bug, error, or other issue with the library's codebase.
  • My PR is for the menu module of the JDA-Utilities library.
  • My PR creates a new module for the JDA-Utilities library: ______.

Description

Currently, SelectionDialog will continue showing options when the SELECT emoji was pressed. This makes it impossible for example to edit the menu message to show results, as the Menu itself will just re-render its current option and wait for further events.

This PR adds a new Builder setting useSingleSelectionMode(boolean) which allows for the Menu to exit after SELECT was pressed.

The default behavior is the same as before: continue listening

@jagrosh jagrosh merged commit 4bd7a31 into master Mar 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants