Team-Creative-Name / Plexi

A Discord bot that integrates with Ombi
GNU Affero General Public License v3.0
1 stars 1 forks source link

Optimize the Paginator class for submenus #20

Open collectioncard opened 4 years ago

collectioncard commented 4 years ago

Currently, the paginator class goes straight for a submenu if there is only one result on the main menu. This is intended behavior. The issue is that we still send the first menu over and then immediately send the second menu to discord and edit the message. Not only is this sending more data, but the user can see the first menu for a brief second before the message is edited.

Proposal: We should make the paginator class go straight into a submenu if it meets the criteria instead of doing what it currently does.