Uhg the API you're working with is *terrible*. From what I can tell, the value you're after is either in: `message.data.type.result` **or** `message.type.result`. I sympathize, but the naming you're using gets confusing here, where `type` is *not* the message type, but an object containing a `result` property that defines the type. Could you account for this detail when you're creating the variable, so that `type` stores the actual String value describing the message type?