use the id method in the channel class to get the channel id.