Traceback (most recent call last):
File "D:\github\bgmc-manager\test.py", line 36, in <module>
asyncio.run(start())
File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "D:\github\bgmc-manager\test.py", line 33, in start
await twitch.end_prediction(target_channel_user.id, prediction.id, PredictionStatus.CANCELED, prediction.outcomes[0].id)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\twitchAPI\twitch.py", line 2880, in end_prediction
return await self._build_result('PATH', 'predictions', {}, AuthType.USER, [AuthScope.CHANNEL_MANAGE_PREDICTIONS], Prediction, body_data=body)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\twitchAPI\twitch.py", line 599, in _build_result
response = await req(session, _url, auth_type, auth_scope, data=body_data)
TypeError: 'NoneType' object is not callable
create_prediction works correctly.