setType

Sets the message type

Parameters

type

The message type