-
Notifications
You must be signed in to change notification settings - Fork 42
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
Improve remove index's tooltip and parameter type #93
Comments
@aquelemiguel @joao-conde Do you think this is feasible within the current codebase? I haven't really looked at the code besides changing some aliases in the past, so I have no idea if it would be easy for me to pick this issue up 😁 |
We're using
Already is. 🙂 parrot/src/events/serenity_handler.rs Lines 77 to 88 in fd2a0c0
|
As I said on #90, I think that we should change the tool tip to indicate that the next track is 1, instead of saying that the current one is 0. |
This is what I'm aiming for, in addition to making it explicit that it removes the tracks from the queue.
Oops @aquelemiguel, you're absolutely correct! I thought that it wasn't because Discord let me input free text, but it validates for the integer only when you try to send it. What I can actually improve is the validation for out-of-bound integers, because inputing a negative integer currently shows this: This suggests that somehow the input wasn't received, but that isn't the case. |
@afonsojramos It's specifically the line 32 one, where we had cast it to |
@afonsojramos Interesting, what command did you try? Probably negative? |
Yep, good guess, it's because I tried with a negative number, already making changes to handle this ;) |
As for the tooltip for the index parameter, I suggest |
I had made the changes before seeing your comment @rafaeldamasceno, and I used a more "barebones" description, but yours does seem more eloquent. |
Rationale
Currently, when selecting a track to be removed from the queue, it isn't immediately obvious how it is going to work.
Description
The UX of selecting the track to be removed could be improved with a tooltip that better clarifies how the queue indexing works. Additionally, the index parameter could be converted to an
INTEGER
option.Reference
Application Command Option Type
The text was updated successfully, but these errors were encountered: