mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -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:
@@ -407,6 +407,9 @@ class Streams(commands.Cog):
|
|||||||
token=token.get("client_id"),
|
token=token.get("client_id"),
|
||||||
bearer=self.ttv_bearer_cache.get("access_token", None),
|
bearer=self.ttv_bearer_cache.get("access_token", None),
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
if is_yt:
|
||||||
|
stream = _class(name=channel_name, token=token, config=self.config)
|
||||||
else:
|
else:
|
||||||
stream = _class(name=channel_name, token=token)
|
stream = _class(name=channel_name, token=token)
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user