Skip to content
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

Open
vcarl opened this issue Oct 2, 2022 · 6 comments
Open

Support Discord modals #21

vcarl opened this issue Oct 2, 2022 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@vcarl
Copy link

vcarl commented Oct 2, 2022

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.

@itsMapleLeaf
Copy link
Owner

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

@vcarl
Copy link
Author

vcarl commented Oct 3, 2022

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

@itsMapleLeaf
Copy link
Owner

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

@itsMapleLeaf itsMapleLeaf added the enhancement New feature or request label Oct 12, 2022
@vcarl
Copy link
Author

vcarl commented Oct 14, 2022

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

@ethndotsh
Copy link

+1 on this

@4lve
Copy link

4lve commented Sep 29, 2023

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

@itsMapleLeaf itsMapleLeaf added the help wanted Extra attention is needed label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants