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

Updated ConnectionCredentials to use an anonymous user by default #257

Merged
merged 2 commits into from
Apr 6, 2024

Conversation

ChrisBlueStone
Copy link

If no username is provided to the ConnectionCredentials, a default username of justinfan right-padded with 4-5 random digits will be generated which will allow an anonymous connection to twitch.

This follows the same logic used by tmi.js.

@AoshiW
Copy link

AoshiW commented Nov 19, 2023

your PR should target dev, not main

@ChrisBlueStone ChrisBlueStone changed the base branch from master to dev November 19, 2023 07:16
@ChrisBlueStone
Copy link
Author

My bad, I'll correct it in the morning

@AoshiW
Copy link

AoshiW commented Nov 19, 2023

you could also create a new constructor (or static method) with only Capabilities as parameter and leave the current one unchanged

If no username is provided to the ConnectionCredentials, a default username of `justinfan` right-padded with 4-5 random digits will be generated.
@AoshiW
Copy link

AoshiW commented Nov 19, 2023

looks good (but I still personally prefer the new constructor/static method)

Copy link
Member

@swiftyspiffy swiftyspiffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks!

@swiftyspiffy swiftyspiffy merged commit 8c5e0ae into TwitchLib:dev Apr 6, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants