Check channels connected to

There isn’t. Your code will need to listen to the JOIN and PART confirmation messages you get when you JOIN or PART a channel.