Creating Discord Bot Thatcheckls if Channel is live. Need to get oauth and client id


#1

I am developing a Discord bot that uses discord.js, that will have a feature to checkif a user is live, but i am unsure on how to get the bot to access the api and check if that user is live. I am new to this and don’t understand the documentation all to well.

Basically, im trying to get a client id and all the auth stuff that i need but i have no clue what im doing.

Can someone give a slightly simpler run through on how to create said auth stuff, and how i would get the bot to check if a user is live.

Hopefully this is ok


#2

You can either poll the streams endpoint

or use webhooks

Generally for these endpoints you only need a “server to server” access token, also called an “app access token”