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
Cannot convert undefined or null to object error when call globalBadges.badgeSetNames. I am immature, but tried to send PR. #28
Cannot convert undefined or null to object
globalBadges.badgeSetNames
const globalBadges = await twitchClient.badges.getGlobalBadges(); globalBadges.badgeSetNames.forEach(s => { const badgeSet = globalBadges.getBadgeSet(s); badgeSet.versionNames.forEach(v => { const version = badgeSet.getVersion(v); console.debug(JSON.stringify({ imageUrl: version.getImageUrl(1), desc: version.description, clickUrl: version.clickUrl, clickAction: version.clickAction, title: version.title, })); }); });
call ChatBadgeList.badgeSetNames If normal return badge set names(string[]).
ChatBadgeList.badgeSetNames
but, ChatBadgeList.badgeSetNames :
return Object.keys(this._data.versions);
Isn't it correct to return a list of badge names rather than a list of versions?
I think the structure is as follows.
{ broadcaster: { versions: { "1": { title: ~~, description: ~~, ... } ... } } ... }
The text was updated successfully, but these errors were encountered:
Fixed in ec24231.
Sorry, something went wrong.
No branches or pull requests
Bug Report
Cannot convert undefined or null to object
error when callglobalBadges.badgeSetNames
.I am immature, but tried to send PR. #28
Code
Expected behavior
call
ChatBadgeList.badgeSetNames
If normal return badge set names(string[]).Actual Behavior
but,
ChatBadgeList.badgeSetNames
:Isn't it correct to return a list of badge names rather than a list of versions?
I think the structure is as follows.
Environment
The text was updated successfully, but these errors were encountered: