tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.54k stars 216 forks source link

Wrong identification of data #440

Closed padreputativo closed 3 years ago

padreputativo commented 3 years ago

The examples (documentation is old) and the class use the word "username" BUT sometimes return de Display Name and others the Nick Name and it should be using only the Twitch ID. I know that is an irc protocol problem but at least the vars should be named properly to be able to use de Twitch API to retrieve the missing data (im done all this and there is data conflicts)

AlcaDesign commented 3 years ago

In some places the display name has been used when the login name is available anyways. This is all old code and I don't know if it's right to change it to the login (if even available) except for a major update. You're free to make a PR to tmijs/docs to reflect the current values.