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.