timfitzzz / twitch-clipcatcher

Watch clips with your chat, but only the good ones
https://clipstime.manapool.nyc
4 stars 0 forks source link

Validate channel name on initial input #38

Closed timfitzzz closed 2 years ago

timfitzzz commented 2 years ago

Right now you can put whatever you want into the channels box; you'll get an error on console if the join fails, but that's it. Need to handle this with an error message and avoid adding the channel.

timfitzzz commented 2 years ago

This is tough because there's no real "search for user by partial string API" endpoint that I'm aware of. One workaround could be to get the user's followed channels and use that list as the autocomplete dictionary, with an option for "manually add". In the meantime, the fix deployed should prevent the bug case, so I'm switching this to enhancement and pushing it to 1.0.