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

tags.badges.subGifter now Boolean #298

Open
robertlstt opened this issue Apr 14, 2021 · 1 comment
Open

tags.badges.subGifter now Boolean #298

robertlstt opened this issue Apr 14, 2021 · 1 comment
Labels

Comments

@robertlstt
Copy link

I've recently updated from beta.31 to beta.41 and noticed that tags.badges.subGifter has switched from a number to a Boolean. I was pulling this number and now only get true/false. The data I see in _raw seems to suggest that subGifter is a number, not a Boolean. Was this change intentional? Thank you!

@marcandrews
Copy link
Member

subGifter needs to be removed from

twitch-js/src/twitch.ts

Lines 275 to 286 in 476ff0a

export enum BooleanBadges {
'admin',
'broadcaster',
'globalMod',
'moderator',
'partner',
'premium',
'staff',
'subGifter',
'turbo',
'vip',
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants