From d195b925ed78109902b5d11d330d8d39d6fe19b2 Mon Sep 17 00:00:00 2001 From: SputNikPlop <100245448+SputNikPlop@users.noreply.github.com> Date: Sun, 5 Nov 2023 16:02:10 -0800 Subject: [PATCH] fix: broken 7tv emotes (#1107) * fix: broken 7tv emotes * fix: pull user emotes --- functions/src/emotes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/src/emotes.ts b/functions/src/emotes.ts index 4472e05a9..750370343 100644 --- a/functions/src/emotes.ts +++ b/functions/src/emotes.ts @@ -197,7 +197,7 @@ export async function getFFZEmotes(channelId: string): Promise { } export async function get7TVEmotes(channelId: string): Promise { - 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) => ({ @@ -209,7 +209,7 @@ export async function get7TVEmotes(channelId: string): Promise { })) ) .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) => ({