Class MessageUtils

  • All Implemented Interfaces:

    
    public final class MessageUtils
    
                        
    • 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
    • Constructor Detail

    • Method Detail

      • latestOrNull

         final static Message latestOrNull(List<Message> $self)

        Peeks the latest message from the sorted List of messages.

      • createdAfter

         final static Boolean createdAfter(Message $self, Message that)

        Tests if this message was created after that message.

      • isDeleted

         final static Boolean isDeleted(Message $self)
        Returns:

        If the message is deleted.

      • isRegular

         final static Boolean isRegular(Message $self)
        Returns:

        If the message type is regular.

      • isEphemeral

         final static Boolean isEphemeral(Message $self)
        Returns:

        If the message type is ephemeral.

      • isSystem

         final static Boolean isSystem(Message $self)
        Returns:

        If the message type is system.

      • isError

         final static Boolean isError(Message $self)
        Returns:

        If the message type is error.

      • isGiphy

         final static Boolean isGiphy(Message $self)
        Returns:

        If the message is related to a Giphy slash command.

      • isGiphyEphemeral

         final static Boolean isGiphyEphemeral(Message $self)
        Returns:

        If the message is a temporary message to select a gif.

      • isThreadStart

         final static Boolean isThreadStart(Message $self)
        Returns:

        If the message is a start of a thread.

      • isThreadReply

         final static Boolean isThreadReply(Message $self)
        Returns:

        If the message is a thread reply.

      • isReply

         final static Boolean isReply(Message $self)
        Returns:

        If the message contains quoted message.