We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As announced months before, Twitch now identifies users by a unique ID instead of their name.
Today, Twitch decided to make a breaking change before v3 API is EOL by allowing full username changes. https://blog.twitch.tv/the-hype-is-real-name-changes-are-here-c629c4697154?sf58352669=1#.7fb8dssk7
So to truly identify users you must now use the unique ID instead of the name, but tmi.js offers no possibility for that.
Apparently, user-id is missing for a lot of IRC messages, but maybe it should be pre-maturely implemented for every event(?)
https://discuss.dev.twitch.tv/t/username-changes-identifying-users/9373/20
The text was updated successfully, but these errors were encountered:
tmi.js if giving you as much data as it receives. You have to supplement the rest.
Sorry, something went wrong.
Well, e.g. as you can see the subanniversary event has a user-id emitted by IRC
tmi.js/test/events.js
Line 189 in e680e2b
There is no way to get that tough from the resub event https://docs.tmijs.org/v1.1.2/Events.html#subscription
My ideal of this situation is that we change it so that every event emits an object instead. Then you just destruct for what you need:
client.on('subanniversary', ({ channel, message, userstate, months }) => { });
Then it doesn't matter what our order of arguments are.
Sounds perfect to me. Futureproof and simple to adjust to
No branches or pull requests
As announced months before, Twitch now identifies users by a unique ID instead of their name.
Today, Twitch decided to make a breaking change before v3 API is EOL by allowing full username changes. https://blog.twitch.tv/the-hype-is-real-name-changes-are-here-c629c4697154?sf58352669=1#.7fb8dssk7
So to truly identify users you must now use the unique ID instead of the name, but tmi.js offers no possibility for that.
Apparently, user-id is missing for a lot of IRC messages, but maybe it should be pre-maturely implemented for every event(?)
https://discuss.dev.twitch.tv/t/username-changes-identifying-users/9373/20
The text was updated successfully, but these errors were encountered: