mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -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:
parent
f1d2be58c1
commit
f129dcd1a9
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user