MessageEventContent used to be an enum, it now has a msgtype field where the enum (now called MessageType) sits.