Class MessageUtilsKt
-
- All Implemented Interfaces:
public final class MessageUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static StringgetMessageType(Message message)Updates the type of the Message based on its content. -
-
Method Detail
-
getMessageType
final static String getMessageType(Message message)
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.
-
-
-
-