You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a select a default. It does kinda work. And it does say that is the default select but if I click some other select aka Xbox it goes to that embed but the select is stuck at the default select aka playstation. I really want default selects so I hope someone fixes this issue.
Minimal Reproducible Code
@bot.hybrid_command(name="help", description="Get information about commands")asyncdefhelp(ctx):
menu=ViewMenu(ctx, menu_type=ViewMenu.TypeEmbed)
menu.add_page(discord.Embed(title="「 🎉 」Fun ", description="anything", color=discord.Color.blurple()))
menu.add_page(discord.Embed(title="「 🔨 」Moderation ", description="add info2 stuff here", color=discord.Color.blurple()))
menu.add_page(discord.Embed(title="A showcase of console video games", color=discord.Color.blurple()))
menu.add_select(ViewSelect(title="Commands", options={
discord.SelectOption(label="Playstation", emoji="<:PlayStation:549638412538478602>", default=True) : [
Page(embed=discord.Embed(title="Ratchet & Clank", description=..., color=discord.Color.yellow()).set_image(url="https://picsum.photos/200")),
Page(embed=discord.Embed(title="God of War", description=..., color=discord.Color.blue()).set_image(url="https://picsum.photos/200"))
],
discord.SelectOption(label="Xbox", emoji="<:Xbox:501880493285834752>") : [
Page(embed=discord.Embed(title="Halo Infinite", description=..., color=discord.Color.green()).set_image(url="https://picsum.photos/200")),
Page(embed=discord.Embed(title="Gears of War 4", description=..., color=discord.Color.red()).set_image(url="https://picsum.photos/200"))
]
}))
back_button=ViewButton(style=discord.ButtonStyle.primary, label='', emoji='<:left:1227864319790809168>' ,custom_id=ViewButton.ID_PREVIOUS_PAGE)
menu.add_button(back_button)
next_button=ViewButton(style=discord.ButtonStyle.success, label='', emoji='<:right:1227818792311066685>',custom_id=ViewButton.ID_NEXT_PAGE)
menu.add_button(next_button)
link_button=ViewButton(style=discord.ButtonStyle.link, emoji='🌍', label='Link to Google', url='https://google.com')
menu.add_button(link_button)
awaitmenu.start()
Traceback
None
Library Version
- Python v3.11.4-final
- discord.py v2.3.2-final
- aiohttp v3.8.6
- system info: Linux 4.19.191+ #1 SMP PREEMPT Tue Aug 8 18:51:39 CST 2023```
### Required Checklist
- [X] I am using discord.py 2.0 or higher
- [X] I am using reactionmenu 3.1.0 or higher
- [X] I have the required [intents](https://github.com/Defxult/reactionmenu#intents) enabled
### Additional Comments
_No response_
The text was updated successfully, but these errors were encountered:
Hey! The selects were never designed to have default selects like in your example. It's designed so the user would have to select an option each time and upon selection would navigate to its associated pages. That's why it gets "stuck" when the new embeds are displayed (you can't select something that's already selected).
In addition without going too deep into an explanation, allowing this capability isn't worth it when it comes to performance.
What I'll end up doing is documenting that this isn't possible to prevent the opening of issues relating to this topic. Thanks for opening the issue!
Describe the bug
I'm trying to make a select a default. It does kinda work. And it does say that is the default select but if I click some other select aka Xbox it goes to that embed but the select is stuck at the default select aka playstation. I really want default selects so I hope someone fixes this issue.
Minimal Reproducible Code
Traceback
Library Version
The text was updated successfully, but these errors were encountered: