Skip to content
New issue

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

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

Already on GitHub? # to your account

Show page before starting the menu #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ToxicKidz
Copy link

This PR makes it so that MenuPages shows the first page on MenuPages.start if a message is supplied.

Relevant Issues

Fixes #16.

Solution

In MenuPages.start, if MenuPages.message is not None, it will call MenuPages.show_page(0) in order to show the first page when the menu first starts.

discord/ext/menus/__init__.py Outdated Show resolved Hide resolved
Co-authored-by: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menus wont load unless I explicitly ask for the page first
2 participants