No error, no exception, code doesn't work though

Hi! Version 1.2.5 is like 5 years old. Is there a specific reason you can’t use something newer? If you have a reason, we might be able to figure something out.

For your code, it’d be something like:

static TwitchClient client;

static void TwitchConnect() {
    ConnectionCredentials credentials = new ConnectionCredentials("<name>", "<authentication token here>");
    client = new TwitchClient(credentials, "zoliking");
    client.OnJoinedChannel += sayHi;
    client.OnConnected += onConnected;
    client.Connect();
}

private static void onConnected(object sender, TwitchClient.OnConnectedArgs e) {
    Console.WriteLine("Connected!");
}

private static void sayHi(object sender, TwitchClient.OnJoinedChannelArgs e) {
    client.SendMessage("zoliking", "Hey there!");
}

This code is probably wrong because I barely remember the structure of the library in 2016.