getMessageType
Updates the type of the Message based on its content.
If the message contains a command or has attachments to upload, the type will be MessageType.EPHEMERAL. If the message is a system message, the type will be MessageType.SYSTEM. Otherwise, the type will be MessageType.REGULAR, as we cannot send messages which are not regular, ephemeral, or system.
Parameters
message
The message to update.