Ignoring exception in on_ready
Traceback (most recent call last):
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 329, in _run_event
await coro(*args, **kwargs)
File "C:\Users\aboud\Desktop\lol.py", line 19, in on_ready
await resp.components[0].children[0].choose(resp.components[0].children[0].options[gameChoice])
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\components.py", line 366, in choose
await state.http.interact(payload)
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\http.py", line 397, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In application_id: Value "None" is not snowflake.
This issue was also present with Buttons (#178), [Line 231 of components.py](), it was fixed by adding
'application_id': str(message.application_id or message.author.id),
The current value of line 348 is
'application_id': str(message.application_id),, hence I propose a similar fix be used here too.
Made on behalf of @Sxvxgee.
Thanks for all the work Dolfies :)
Additional Information
Using commit 0f2dda9dd4392039576243a27fc34f7ab9542e2e.
Summary
Application ID in interaction payload is None
Code -
Inspiration.
Error -
Works after modifying Line 348 of components.py to include application ID.
This issue was also present with Buttons (#178), [Line 231 of components.py](), it was fixed by adding
'application_id': str(message.application_id or message.author.id),
The current value of line 348 is'application_id': str(message.application_id),
, hence I propose a similar fix be used here too.Made on behalf of @Sxvxgee.
Thanks for all the work Dolfies :)
Additional Information
Using commit 0f2dda9dd4392039576243a27fc34f7ab9542e2e.