-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support Discord modals #21
Comments
Hm 🤔 I'm not completely convinced on this one. How would one use modals themselves, and how would Reacord make using them easier? Some code samples on what an API would look like, that'd help |
I'll see about putting one together, I believe they're similar in API behavior to buttons etc — "modals" is probably a bit of a misnomer tbh, they appear as modals but the primary use case is text input in response to other interactions |
Hey again! I just recently dipped into Discord modals, and I'm definitely feeling the pain! 😂 So I'm totally in on this issue. I'll be playing around with some ways to integrate this into the API, but suggestions are still welcome of course |
I'm traveling for a conference and have a lot of other work queued up, but will try to get some time to dig in on how this might work. Maybe I can get some helpful notes |
+1 on this |
You could just have an async func that returns the input values or undefiend if nore, and for the building of the form you could use non-reactive react |
Discord added support for modals as a way of gathering user input from commands. It would enable a bunch of new types of bot interactions if Reacord supported these.
I took a stab at trying to add support, but I didn't really grok how the existing code fits together. I can try to add support, but I'd probably need to get on a call for a tour of the codebase, to better understand how it fits together.
The text was updated successfully, but these errors were encountered: