mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 02:12:32 -05:00
[Streams] Resolve bug with [p]streamalert youtube (#4629)
The command didn't handle channels that were not provided as IDs
This commit is contained in:
@@ -408,7 +408,10 @@ class Streams(commands.Cog):
|
|||||||
bearer=self.ttv_bearer_cache.get("access_token", None),
|
bearer=self.ttv_bearer_cache.get("access_token", None),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
stream = _class(name=channel_name, token=token)
|
if is_yt:
|
||||||
|
stream = _class(name=channel_name, token=token, config=self.config)
|
||||||
|
else:
|
||||||
|
stream = _class(name=channel_name, token=token)
|
||||||
try:
|
try:
|
||||||
exists = await self.check_exists(stream)
|
exists = await self.check_exists(stream)
|
||||||
except InvalidTwitchCredentials:
|
except InvalidTwitchCredentials:
|
||||||
|
|||||||
Reference in New Issue
Block a user