requires a and action_row to have text_input in a model
and put in an answer for text_input, and submit
Code
if ctx.components:
for comp in ctx.components:
for child in comp.children:
if str(child.type) == "ComponentType.button" and child.label == 'Catch me!':
modelg = await child.click()
await bot.wait_for("modal")
model = modelg.modal
for action in model.components:
if str(action.type) == 'ComponentType.action_row':
for textInp in action.children:
if str(textInp.type) == 'ComponentType.text_input':
textInp.answer('answer')
print(textInp.to_dict())
await model.submit()
Expected Results
model to submit and bot (not selfbot) to respond
Actual Results
Traceback (most recent call last):
File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\client.py", line 507, in _run_event
await coro(*args, **kwargs)
File "C:\Users\giris\OneDrive\Documents\Codes\testingselfbot\slashcommand.py", line 37, in on_message
await model.submit()
File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\modal.py", line 136, in submit
self.to_dict(),
^^^^^^^^^^^^^^
File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\modal.py", line 104, in to_dict
'components': [c.to_dict() for c in self.components],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\modal.py", line 104, in
'components': [c.to_dict() for c in self.components],
^^^^^^^^^^^
File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\components.py", line 102, in to_dict
raise NotImplementedError
NotImplementedError
System Information
Python v3.11.0-final
discord.py-self v2.0.0-final
aiohttp v3.8.5
system info: Windows 10 10.0.22621
Checklist
[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).
Summary
NotImplementedError
Reproduction Steps
requires a and action_row to have text_input in a model and put in an answer for text_input, and submit
Code
Expected Results
model to submit and bot (not selfbot) to respond
Actual Results
Traceback (most recent call last): File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\client.py", line 507, in _run_event await coro(*args, **kwargs) File "C:\Users\giris\OneDrive\Documents\Codes\testingselfbot\slashcommand.py", line 37, in on_message await model.submit() File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\modal.py", line 136, in submit self.to_dict(), ^^^^^^^^^^^^^^ File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\modal.py", line 104, in to_dict 'components': [c.to_dict() for c in self.components], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\modal.py", line 104, in
'components': [c.to_dict() for c in self.components],
^^^^^^^^^^^
File "C:\Users\giris\AppData\Roaming\Python\Python311\site-packages\discord\components.py", line 102, in to_dict
raise NotImplementedError
NotImplementedError
System Information
Checklist
Additional Information
No response