Check if channel is live [C#, Discord]

so would I do something like “if data is null , then send message streamer not online else streamer is online”.
I have a script that handles commands. Would I put that in there?