I'm getting TONS of errors while trying to click a button
Reproduction Steps
try to click a button
Code
await message.components[0].children[0].click()
Expected Results
It should click the button
Actual Results
Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 396, in _run_event
await coro(*args, **kwargs)
File ".", line 64, in f_event
await message.components[0].children[0].click()
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\components.py", line 227, in click
await state.http.interact(type, self.to_dict(), message.channel, message, nonce=nonce)
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\http.py", line 580, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In data: [{'code': 'COMPONENT_VALIDATION_FAILED', 'message': 'Component validation failed'}]
Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\components.py", line 228, in click
i = await state.client.wait_for(
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 396, in _run_event
await coro(*args, **kwargs)
File ".", line 45, in other_event
await message.components[0].children[0].click()
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\components.py", line 234, in click
raise InvalidData('Did not receive a response from Discord') from exc
discord.errors.InvalidData: Did not receive a response from Discord
System Information
Python v3.10.3-final
discord.py-self v2.0.0-alpha
discord.py-self pkg_resources: v2.0.0a2
aiohttp v3.8.1
system info: Windows 10 10.0.22000
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
I'm getting TONS of errors while trying to click a button
Reproduction Steps
try to click a button
Code
Expected Results
It should click the button
Actual Results
System Information
Checklist
Additional Information
No response