mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
[Streams] Fixed streamalert not using Client-ID
This commit is contained in:
@@ -317,8 +317,9 @@ class Streams:
|
||||
|
||||
async def twitch_exists(self, stream):
|
||||
url = "https://api.twitch.tv/channels/" + stream
|
||||
header = {'Client-ID': self.settings.get("TWITCH_TOKEN", "")}
|
||||
try:
|
||||
async with aiohttp.get(url) as r:
|
||||
async with aiohttp.get(url, headers=header) as r:
|
||||
data = await r.json()
|
||||
if "error" in data:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user