Class MessageUtilsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String getMessageType(Message message) Updates the type of the Message based on its content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.