Twitch livestream preview in discord.js

The API endpoints for what you’d need are all HTTP requests, so you’d need to use a HTTP library first to get an OAuth token https://dev.twitch.tv/docs/authentication, and with that authorizaiton token you can then make requests to the Get Streams endpoint that I previously linked.