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

TwitchUser getColor #48

Open
ghost opened this issue Mar 6, 2022 · 2 comments
Open

TwitchUser getColor #48

ghost opened this issue Mar 6, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 6, 2022

Whenever I use the sender.getColor() method inside of onPrivMsg(TwitchUser sender, TwitchMessage message), it returns a number that is not a valid hex value

@Gikkman
Copy link
Owner

Gikkman commented May 23, 2022

Do you got some examples?

The code for this part is dead simple: it just take whatever twitch sends us and assigns it to a field, so I'd be interested in what you see.

@e3ndr
Copy link
Contributor

e3ndr commented Jul 25, 2022

Whenever I use the sender.getColor() method inside of onPrivMsg(TwitchUser sender, TwitchMessage message), it returns a number that is not a valid hex value

The conversion from int to a hex code is String.format("#%06x", colorInt)

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