discord-py-ui / discord-ui

A discord.py extension for sending, receiving and handling ui interactions in discord
https://discord-ui.rtfd.io/
MIT License
36 stars 10 forks source link

discord_ui.Message.wait_for("select" ...) returns a ComponentContext, not SelectedMenu #96

Closed tiltowait closed 3 years ago

tiltowait commented 3 years ago

According to the docs, discord_ui.Message.wait_for("select", ...) returns a SelectedMenu item; however, in my testing, it returns a ComponentContext object. Importantly, the latter lacks a selected_values item; in order to access the selection, I have to use component.data["values"].

This discrepancy also affects this line in the example code.

kvsxxx commented 3 years ago

Thx again for reporting and thx for your patience!

I tried to reproduce it with the example code but for me it works, it gives me a SelectMenu with .selected_values, maybe try to update?

kvsxxx commented 3 years ago

ah wait now I got the issue! I'll fix it

kvsxxx commented 3 years ago

Okay seems like I somehow fixed it, I just gotta upload the new version, thx for reporting! ❤

kvsxxx commented 3 years ago

okay this should be fixed in v4.2.14

I'm sorry for all of these issues, but I hope you stay patient

If this issue still exists, please tell us so we can fix it Thank you