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
Paginator is replaced by second paginator upon using commands consecutively #1269
Comments
The issue still persists in the following scenario: Also, if you trigger the bug like above, the following exception is raised when the paginator times out:
but this does not happen if the bug isn't triggered. The bug is still not triggered if you defer first. Additionally, after the previous fix, the bug is no longer triggered if you use the select menu first. |
What in the world... Will fix. |
Summary
Essentially, if you use a command with a paginator utilizing page groups once, then use the same command with a different option after to produce a different paginator, the second paginator will replace the first in the first commnad.
Reproduction Steps
This bug does not occur if you defer before sending the paginator.
For this to work, you need a command utilizing page groups, and the command needs to have an argument that produces a different paginator depending on the option selected.
To reproduce, simply use the command twice consecutively, the first time with the first option, and the second time with the second option.
After doing this, two scenarios are possible, depending on whether or not the second paginator's page groups are named differently than the first.
Scenario 1, the page groups for the second command are named differently:
In this case, attempting to use the select menu on the first command will fail silently with "this interaction failed". If you then use the first command's buttons (not select menu), they will function properly, but the embeds will be updated as if you were using the second command. Furthermore, the select menu will now be updated to reflect the page group names of the second command, and it will no longer silently fail. The content and view of the first command is now entirely overwritten and identical to the second command.
Scenario 2, the page groups for the second command are named the same:
In this case, the select menu will never silently fail like in the first scenario, but everything else will be the same as scenario 1. The first command's pages will have been completely replaced by the second command's pages.
See the following video for scenario 1 in action:
https://user-images.githubusercontent.com/56235026/163677172-a7b2a0f3-462d-4c37-9e9c-7326d67080a6.mp4
Minimal Reproducible Code
Expected Results
The command instances are totally independent of each other, and they do not overwrite each other.
Actual Results
The second command's paginator overwrites the first command's paginator.
Intents
None
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: