Updated for enum changes, and added the ability to change channel owners.
Reformatted code.