Skip to content

Commit

Permalink
fix: broken 7tv emotes (#1107)
Browse files Browse the repository at this point in the history
* fix: broken 7tv emotes

* fix: pull user emotes
  • Loading branch information
SputNikPlop authored Nov 6, 2023
1 parent 49ec0a0 commit d195b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/src/emotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export async function getFFZEmotes(channelId: string): Promise<Emote[]> {
}

export async function get7TVEmotes(channelId: string): Promise<Emote[]> {
const global = fetch("https://api.7tv.app/v2/emotes/global")
const global = fetch("https://7tv.io/v3/emote-sets/global")
.then((res) => res.json() as any)
.then((json) =>
json.map((emote: any) => ({
Expand All @@ -209,7 +209,7 @@ export async function get7TVEmotes(channelId: string): Promise<Emote[]> {
}))
)
.catch(() => []);
const local = fetch(`https://api.7tv.app/v2/users/${channelId}/emotes`)
const local = fetch(`https://7tv.io/v3/users/twitch/${channelId}`)
.then((res) => res.json() as any)
.then((json) =>
json.map((emote: any) => ({
Expand Down

0 comments on commit d195b92

Please sign in to comment.