Skip to content

request: (PaginatedMessage) 'Go To Page' button to get page input from a user via a text modal #610

@GoldenAngel2

Description

@GoldenAngel2

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

Have an option to have a button Go To Page button show a text input modal for input on what page the bot should go to.

  • This would allow more than 25 pages.
  • Gives developers other options when it comes to displaying pages to users.
  • It gives a more clean way of allowing the user to go to a certain page without the developer limiting PaginatedMessage to only 25 pages.

Or removing the string select menu and bypassing addPage / addPages warning / check for the 25 page limit, which is what you can do currently but removes the ability to go to a certain page.

Desired solution

For PaginatedMessage add an option to use / not use the 'Go To Page' button as a default action to be handled by the package itself.

  • PaginatedMessage adds Go To Page / button to the pages
  • PaginatedMessage Once that button is pressed it will show a modal to get a page number input from the user.
  • PaginatedMessage Once that modal is submitted it will be processed and the page will change (if valid etc.)

Alternatives considered

N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions