-
The docs don't make much sense, in my case I have a button from a bot that opens up a modal, how should I submit that modal after entering some text? The following seems to maybe work, but I can't test it unless I input text onto a field of the modal. def check(m):
return m.title == "A wild"
for comp in message.components:
for child in comp.children:
if child.label == "Catch me!":
await child.click()
modal = await self.wait_for("modal", check=check)
await modal.submit() |
Beta Was this translation helpful? Give feedback.
Answered by
dolfies
Aug 14, 2023
Replies: 1 comment 4 replies
-
The Modal class also has a |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
dolfies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Modal class also has a
components
array of ActionRows. Each ActionRow will contain a single TextInput class, on which you can call.answer()
. After that, you can callmodal.submit()
as you already are. Please reference the documentation.