Hye Guys.
I have a problem, I don’t understand why I can’t create a Prediction using the TwitchLib.PubSub.Models.Responses library.
I write in C#.
I have the following json file:
(CreatedAt i replace in programm to DateTime.Now)
Logically, I send this text to the method of the Message class, and it should create a forecast on the channel.
But it doesn’t work, the program crashes.
The most obvious answer is that I didn’t even list my channel, that I can create Predictions.
But I don’t understand where and how to initialize my account.
I ask you to help and suggest how to initialize my account in code. Well, or what am I wrong about, maybe there are errors in the json file.
Dist
2
You should refer to the documentation of the library you’re using on how to use that library, or using the 3rd party Twitch Library discord server https://discord.gg/8NXaEyV and getting support in the library specific channel.
1 Like
The response model describes the response to fetching a prediction.
You wyoul need to build a required using the request model.
Thats in broadcaster_id and the token used to make the request.
But this is your best bet for help with a specific library.
1 Like
system
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.