mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[Streams] Fixed streamalert not using Client-ID
This commit is contained in:
parent
b67ba23c00
commit
2203c7b261
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user