mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -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),
|
||||
)
|
||||
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:
|
||||
exists = await self.check_exists(stream)
|
||||
except InvalidTwitchCredentials:
|
||||
|
||||
Reference in New Issue
Block a user