The error is very clear, the type of message you are trying to send to a private channel is not compatible.
per example:
Code:
MESSAGE_EVENT_ORANGE = 36, /*Orange message in the console*/
I've never seen orange messages in a private channel, at least with the official client, if you provide the code, anyone will help you easily and quickly.