Interface Message

  • All Known Subinterfaces:
    Audio, Image
    All Known Implementing Classes:
    MessageChain

    public interface Message
    Represents a message.
    • Method Detail

      • toString

        String toString()
        Get the string representation of this message.
        Overrides:
        toString in class Object
        Returns:
        the string representation of this message
      • toMiraiCode

        String toMiraiCode()
        Get the mirai code of this message.
        Returns:
        the mirai code of this message
      • plus

        default Message plus​(@NotNull
                             @NotNull Message message)
        Append a message to the end of this message.
        Parameters:
        message - the message to append
        Returns:
        the new message