Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling client.JoinChannel seems to block joining channels #2

Closed
RickRosendaal opened this issue Apr 27, 2018 · 1 comment
Closed

Comments

@RickRosendaal
Copy link

RickRosendaal commented Apr 27, 2018

When creating a new client, initializing it (with or without providing a channel), calling .Connect(), and then client.JoinChannel("name"), will result into the client never joining the channel.
The following example will print "Connected". But not "Joined channel".
Removing the "client.JoinChannel" line, will print "Connected", as well as "Joined channel".
Removing the "DamnICantFly" channel parameter in the Initialize method, will again print "Connected", but not "Joined channel".

private void Start()
{
	Client client = new Client();
	client.OnConnected += OnConnected;
	client.OnJoinedChannel += OnJoinedChannel;
	client.Initialize(new TwitchLib.Client.Models.ConnectionCredentials("DamnICantFly", "oauth_token"), "DamnICantFly");
	client.Connect();
	client.JoinChannel("LuckyNoS7evin");
}

private void OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
{
	Debug.Log("Connected");
}

private void OnJoinedChannel(object sender, TwitchLib.Client.Events.OnJoinedChannelArgs e)
{
	Debug.Log("Joined channel");
}
@swiftyspiffy
Copy link
Owner

swiftyspiffy commented Apr 27, 2018

Hey! I'm going to move this issue over to the proper repo so we can discuss it there. This repo is no longer active. Additionally, I'll edit out your oauth token ;)

Moved here: TwitchLib/TwitchLib.Client#31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants