Skip to content

Commit

Permalink
Merge pull request #97 from c17r/fix-fetchFollowersCount
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Feb 21, 2024
2 parents d6f7bcd + a94f2a5 commit c8e3f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Twitch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ export default class Twitch {
* @return The total number of followers.
*/
public static async fetchFollowersCount(targetId: string) {
const response = await Twitch.fetch(TwitchApi.Helix, '/users/follows', { to_id: targetId })
const response = await Twitch.fetch(TwitchApi.Helix, '/channels/followers', { broadcaster_id: targetId })
const relationships = (await response.json()) as RawRelationships

return relationships.total
Expand Down

0 comments on commit c8e3f12

Please sign in to comment.