Interface OutgoingMessage
-
- All Superinterfaces:
Message
public interface OutgoingMessage extends Message
Represents an outgoingMessage.Outgoing messages are ones which have been generated by this instance. (in other words, they are implemented by LuckPerms)
Note that all implementations of this interface are guaranteed to be an instance of one of the interfaces extending
Messagein the 'api.messenger.message.type' package.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull StringasEncodedString()Gets an encoded string form of this message.
-
-
-
Method Detail
-
asEncodedString
@NonNull String asEncodedString()
Gets an encoded string form of this message.The format of this string is likely to change between versions and should not be depended on.
Implementations which want to use a standard method of serialisation can send outgoing messages using the string returned by this method, and pass on the message on the "other side" using
IncomingMessageConsumer.consumeIncomingMessageAsString(String).- Returns:
- an encoded string form of the message
-
-