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

Correctly handle paginated response for twitch user emotes #616

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

Nogesma
Copy link
Contributor

@Nogesma Nogesma commented Jun 21, 2024

Fixes #615

This is a very quick fix, let me know if it works.
I disabled fetching global emotes for twitch as it should now be handled by the get_user_emotes part.
If it works correctly I'll do a bit of cleanup before merging.

@Nogesma Nogesma force-pushed the fix/twitch-subscriber-emotes branch from 5470d6b to fbd93fc Compare June 21, 2024 11:24
@Nogesma Nogesma marked this pull request as ready for review June 21, 2024 11:32
@Xithrius
Copy link
Owner

I'll be able to test later today (6 hours or so), thank you very much for the quick PR.

Copy link
Owner

@Xithrius Xithrius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I've tested it out, here's what I've found:

  • Going to my own channel where I should have access to all emotes shows an empty list in the emote picker.
  • Going to someone else's channel shows their emotes, but no global.
  • I am subscribed to one channel, but no subscriber emotes from said channel show up in any place.

Although I understand you disabled global fetching from get_global_emotes, it doesn't seem to be handled by get_user_emotes's response.

Please let me know if I am misunderstanding any functionality.

@Nogesma
Copy link
Contributor Author

Nogesma commented Jun 22, 2024

Please make sure your token has the user:read:emotes scope.
I think I have a warning in the log file if the query fails because of that.
If that's not it I can try to look into it further tomorrow.

Copy link
Owner

@Xithrius Xithrius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah I see the warning now. Thought I had generated my token with that scope, seems otherwise. Generated the right token, PR works. Please go ahead and do the cleanup when you can.

@Nogesma
Copy link
Contributor Author

Nogesma commented Jun 22, 2024

Ah sorry I already did it, it's good to merge.

@Xithrius Xithrius merged commit b57c656 into Xithrius:main Jun 22, 2024
4 of 6 checks passed
@Xithrius
Copy link
Owner

Very cool. Thanks!

@Nogesma Nogesma deleted the fix/twitch-subscriber-emotes branch June 24, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subscriber emotes from some channels don't show when I'm the one using them
2 participants