TwitchLib.Unity icon indicating copy to clipboard operation
TwitchLib.Unity copied to clipboard

does not have the correct return type.

Open Ulrborg opened this issue 1 year ago • 0 comments

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}");
 }

Ulrborg avatar Jan 06 '24 18:01 Ulrborg