TwitchLib / TwitchLib.Unity

TwitchLib repository representing all code belonging to the implementation of TwitchLib for Unity. Maintained primarily by LuckyNoS7evin.
164 stars 33 forks source link

does not have the correct return type. #72

Open Ulrborg opened 7 months ago

Ulrborg commented 7 months ago

Hi i have an issue with client event : I tried so many things and i am stuck about few hours ago

"'void TwitchChatManager.Client_OnJoinedChannel(object, OnJoinedChannelArgs)' does not have the correct return type."


private void Start()
{
    ConnectionCredentials credentials = new ConnectionCredentials(botUsername, oauthToken);
    client = new TwitchClient();
    client.Initialize(credentials, channelName);

    // event
    client.OnLog += Client_OnLog;
    client.OnJoinedChannel += Client_OnJoinedChannel;
    client.Connect();
}

 private void Client_OnJoinedChannel(object sender, OnJoinedChannelArgs e)
 {
     Debug.Log($"Connected to :  {e.Channel}");
 }