How to find out if a channel is live using the API?

A post was split to a new topic: Twitch/Discord bot help/features